version 1.1, 2008/03/04 16:05:17 |
version 1.2, 2008/05/11 10:26:11 |
|
|
|
|
#include <machine/bus.h> |
#include <machine/bus.h> |
|
|
|
/* XXX */ |
|
uint8_t sa11x1_h_bs_r_1(void *t, bus_space_handle_t bsh, bus_size_t addr); |
|
|
/* Prototypes for all the bus_space structure functions */ |
/* Prototypes for all the bus_space structure functions */ |
bs_protos(sa11x1); |
bs_protos(sa11x1); |
bs_protos(generic); |
bs_protos(generic); |
|
|
sa11x1_bs_barrier, |
sa11x1_bs_barrier, |
|
|
/* read (single) */ |
/* read (single) */ |
bs_notimpl_bs_r_1, |
sa11x1_h_bs_r_1, /* XXX hack for pcmcia accesses */ |
bs_notimpl_bs_r_2, |
bs_notimpl_bs_r_2, |
generic_bs_r_4, |
generic_bs_r_4, |
bs_notimpl_bs_r_8, |
bs_notimpl_bs_r_8, |
|
|
{ |
{ |
|
|
panic("sa11x1_io_bs_free(): not implemented"); |
panic("sa11x1_io_bs_free(): not implemented"); |
|
} |
|
|
|
uint8_t |
|
sa11x1_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 ); |
} |
} |
|
|