version 1.3, 2007/10/16 19:34:13 |
version 1.5, 2007/10/16 19:55:30 |
|
|
|
|
|
|
struct driver obio_dr = { |
struct driver obio_dr = { |
sizeof(obio_dd), |
sizeof(struct obio_dd), |
obio_attach, |
obio_attach, |
obio_detach |
obio_detach |
}; |
}; |
|
|
{ |
{ |
struct obio_dd *ddp = self->dv_devdata; |
struct obio_dd *ddp = self->dv_devdata; |
struct bus_handle *bhp = ddp->od_bh; |
struct bus_handle *bhp = ddp->od_bh; |
|
|
|
ddp->od_locked = 0; |
|
ddp->od_ndevices = 0; |
|
|
bhp->bus_read_1 = obio_read_1; |
bhp->bus_read_1 = obio_read_1; |
bhp->bus_read_2 = obio_read_2; |
bhp->bus_read_2 = obio_read_2; |
bhp->bus_read_4 = obio_read_4; |
bhp->bus_read_4 = obio_read_4; |
|
|
bhp->bus_write_2 = obio_write_2; |
bhp->bus_write_2 = obio_write_2; |
bhp->bus_write_4 = obio_write_4; |
bhp->bus_write_4 = obio_write_4; |
|
|
|
/* expose our bus_handle to the world */ |
|
self->dv_aux = bhp; |
|
|
printf("memory-mapped i/o\n"); |
printf("memory-mapped i/o\n"); |
|
|