diff options
author | Vladimir Dergachev <volodya@mindspring.com> | 2004-10-02 20:35:04 +0000 |
---|---|---|
committer | Vladimir Dergachev <volodya@mindspring.com> | 2004-10-02 20:35:04 +0000 |
commit | 136649a1c2065624a9cf17386054c6595aa6d85e (patch) | |
tree | 52c87aa353a47fc5830969b124c6a2b97cf63de5 /src/generic_bus.h | |
parent | 7a17b1c294fa8c7af0b1cdea0618cb6060479356 (diff) |
Modified:
xc/programs/Xserver/hw/xfree86/drivers/ati/theatre*
xc/programs/Xserver/hw/xfree86/drivers/ati/generic_bus.h Add Rage Theatre
(RT100) module code and hook it into the build system
Diffstat (limited to 'src/generic_bus.h')
-rw-r--r-- | src/generic_bus.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/generic_bus.h b/src/generic_bus.h new file mode 100644 index 00000000..e7bc013e --- /dev/null +++ b/src/generic_bus.h @@ -0,0 +1,32 @@ +#ifndef __GENERIC_BUS_H__ +#define __GENERIC_BUS_H__ + +/* this is meant to be used for proprietary buses where abstraction is needed + but they don't occur often enough to warrant a separate helper library */ + + +#define GB_IOCTL_GET_NAME 1 + /* third argument is size of the buffer, fourth argument is pointer + to the buffer. Returns the name of the bus */ +#define GB_IOCTL_GET_TYPE 2 + /* third argument is size of the buffer, fourth argument is pointer + to the buffer. Returns the type of the bus, driver should check + this at initialization time to find out whether they are compatible + */ + + +typedef struct _GENERIC_BUS_Rec *GENERIC_BUS_Ptr; + +typedef struct _GENERIC_BUS_Rec{ + int scrnIndex; + DevUnion DriverPrivate; + Bool (*ioctl)(GENERIC_BUS_Ptr, long, long, char *); + Bool (*read)(GENERIC_BUS_Ptr, CARD32, CARD32, CARD8 *); + Bool (*write)(GENERIC_BUS_Ptr, CARD32, CARD32, CARD8 *); + } GENERIC_BUS_Rec; + + + + + +#endif |