Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | I2O_IRQ_STATUS 0x30 |
#define | I2O_IRQ_MASK 0x34 |
#define | I2O_IN_PORT 0x40 |
#define | I2O_OUT_PORT 0x44 |
#define | I2O_MOTOROLA_PORT_OFFSET 0x10400 |
#define | I2O_IRQ_OUTBOUND_POST 0x00000008 |
Functions | |
int | i2o_exec_lct_get (struct i2o_controller *) |
int __init | i2o_exec_init (void) |
void | i2o_exec_exit (void) |
int | i2o_driver_dispatch (struct i2o_controller *, u32) |
int __init | i2o_driver_init (void) |
void | i2o_driver_exit (void) |
int __init | i2o_pci_init (void) |
void __exit | i2o_pci_exit (void) |
void | i2o_device_remove (struct i2o_device *) |
int | i2o_device_parse_lct (struct i2o_controller *) |
int | i2o_parm_issue (struct i2o_device *i2o_dev, int cmd, void *oplist, int oplen, void *reslist, int reslen) |
struct i2o_controller * | i2o_iop_alloc (void) |
int | i2o_iop_add (struct i2o_controller *) |
void | i2o_iop_remove (struct i2o_controller *) |
Variables | |
struct i2o_driver | i2o_exec_driver |
struct bus_type | i2o_bus_type |
struct device_attribute | i2o_device_attrs [] |
int i2o_device_parse_lct | ( | struct i2o_controller * | c | ) |
i2o_device_parse_lct - Parse a previously fetched LCT and create devices : I2O controller from which the LCT should be parsed.
The Logical Configuration Table tells us what we can talk to on the board. For every entry we create an I2O device, which is registered in the I2O core.
Returns 0 on success or negative error code on failure.
void i2o_device_remove | ( | struct i2o_device * | i2o_dev | ) |
int i2o_driver_dispatch | ( | struct i2o_controller * | c, |
u32 | m | ||
) |
i2o_driver_dispatch - dispatch an I2O reply message : I2O controller of the message : I2O message number
The reply is delivered to the driver from which the original message was. This function is only called from interrupt context.
Returns 0 on success and the message should not be flushed. Returns > 0 on success and if the message should be flushed afterwords. Returns negative error code on failure (the message will be flushed too).
i2o_exec_exit - Removes the Exec OSM
Unregisters the Exec OSM from the I2O core.
Definition at line 606 of file exec-osm.c.
i2o_exec_init - Registers the Exec OSM
Registers the Exec OSM in the I2O core.
Returns 0 on success or negative error code on failure.
Definition at line 596 of file exec-osm.c.
int i2o_exec_lct_get | ( | struct i2o_controller * | c | ) |
i2o_exec_lct_get - Get the IOP's Logical Configuration Table : I2O controller from which the LCT should be fetched
Send a LCT NOTIFY request to the controller, and wait I2O_TIMEOUT_LCT_GET seconds until arrival of response. If the LCT is to large, retry it.
Returns 0 on success or negative error code on failure.
Definition at line 544 of file exec-osm.c.
int i2o_iop_add | ( | struct i2o_controller * | c | ) |
|
read |
i2o_iop_alloc - Allocate and initialize a i2o_controller struct
Allocate the necessary memory for a i2o_controller struct and initialize the lists and message mempool.
Returns a pointer to the I2O controller or a negative error code on failure.
void i2o_iop_remove | ( | struct i2o_controller * | c | ) |
struct device_attribute i2o_device_attrs[] |
struct i2o_driver i2o_exec_driver |
Definition at line 578 of file exec-osm.c.