1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #include <linux/device.h>
19 typedef int (*MCA_ProcFn)(char* buf, int slot, void* dev);
21 enum MCA_AdapterStatus {
22 MCA_ADAPTER_NORMAL = 0,
24 MCA_ADAPTER_DISABLED = 2,
41 enum MCA_AdapterStatus status;
45 #define to_mca_device(mdev) container_of(mdev, struct mca_device, dev)
47 struct mca_bus_accessor_functions {
48 unsigned char (*mca_read_pos)(struct mca_device *, int reg);
49 void (*mca_write_pos)(struct mca_device *, int reg,
51 int (*mca_transform_irq)(struct mca_device *, int irq);
52 int (*mca_transform_ioport)(struct mca_device *,
54 void * (*mca_transform_memory)(struct mca_device *,
61 struct mca_bus_accessor_functions f;
65 #define to_mca_bus(mdev) container_of(mdev, struct mca_bus, dev)
68 const short *id_table;
70 struct device_driver driver;
72 #define to_mca_driver(mdriver) container_of(mdriver, struct mca_driver, driver)