Re: [Tinyx-devel] [PATCH] device.h for arm7 arch.
Status: Planning
Brought to you by:
davidcohen
From: David C. <da...@gm...> - 2007-12-11 23:32:45
|
Yes. All bus have their function pointer to write, read and ioctl. The driver will try to write and the device will know which bus use. BR, David On Dec 11, 2007 7:31 PM, Felipe Balbi <me...@fe...> wrote: > We should start putting theses discussions on the list so other eventual > users will be able to follow our plans, in any case we decided to have > those bus type defines in order to encapsulate the bus implementation to > the driver. The driver doesn't need to know anything about the bus it > should just call a "write" function, and that function would handle all > bus > specific logic. > > On Tue, 11 Dec 2007 19:08:25 -0400, David Cohen <da...@gm...> wrote: > > Adding the device.h for arm7 arch. > > > > Signed-off-by: David Cohen <da...@gm...> > > Acked-by: Felipe Balbi <me...@fe...> > > > --- > > include/asm-arm7/device.h | 11 +++++++++++ > > 1 files changed, 11 insertions(+), 0 deletions(-) > > create mode 100644 include/asm-arm7/device.h > > > > diff --git a/include/asm-arm7/device.h b/include/asm-arm7/device.h > > new file mode 100644 > > index 0000000..93ea2fd > > --- /dev/null > > +++ b/include/asm-arm7/device.h > > @@ -0,0 +1,11 @@ > > +#ifndef __ASM_DEVICE_H > > +#define __ASM_DEVICE_H > > + > > +/* ARM7 Buses */ > > +#define BUS_TYPE_PLATFORM 0x00 > > +#define BUS_TYPE_I2C 0x01 > > +#define BUS_TYPE_SPI 0x02 > > +#define BUS_TYPE_UART 0x03 > > +#define BUS_TYPE_USB 0x04 > > + > > +#endif /* __ASM_DEVICE_H */ > > -- > > 1.5.3.5 > > > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Tinyx-devel mailing list > > Tin...@li... > > https://lists.sourceforge.net/lists/listinfo/tinyx-devel > -- > Best Regards, > > Felipe Balbi > http://felipebalbi.com > me...@fe... > > |