=================================================================== RCS file: /cvs/sys/arch/arm/sa11x0/sa11x0_space.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- sys/arch/arm/sa11x0/sa11x0_space.c 2008/03/04 16:05:17 1.1.1.1 +++ sys/arch/arm/sa11x0/sa11x0_space.c 2008/05/11 10:26:11 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: sa11x0_space.c,v 1.1.1.1 2008/03/04 16:05:17 nbrk Exp $ */ +/* $OpenBSD: sa11x0_space.c,v 1.2 2008/05/11 09:26:11 nbrk Exp $ */ /* $NetBSD: sa11x0_space.c,v 1.5 2004/06/07 19:45:22 nathanw Exp $ */ /* @@ -88,6 +88,9 @@ #include +/* XXX */ +uint8_t sa11x0_h_bs_r_1(void *t, bus_space_handle_t bsh, bus_size_t addr); + /* Prototypes for all the bus_space structure functions */ bs_protos(sa11x0); bs_protos(generic); @@ -117,7 +120,8 @@ sa11x0_bs_barrier, /* read (single) */ - bs_notimpl_bs_r_1, +// bs_notimpl_bs_r_1, + sa11x0_h_bs_r_1, /* XXX hack for pcmcia */ bs_notimpl_bs_r_2, generic_bs_r_4, bs_notimpl_bs_r_8, @@ -266,5 +270,11 @@ { panic("sa11x0_io_bs_free(): not implemented"); +} + +uint8_t +sa11x0_h_bs_r_1(void *t, bus_space_handle_t bsh, bus_size_t addr) +{ + return( bus_space_read_4((bus_space_tag_t)t, bsh, addr) & 0xff ); }