#include "ocs.h"#include "ocs_driver.h"#include "ocs_vpd.h"#include "ocs_mgmt.h"#include "ocs_gendump.h"#include "ocs_pm.h"#include "ocs_params.h"Go to the source code of this file.
Functions | |
| static void | ocs_device_interrupt_handler (ocs_t *ocs, uint32_t vector) |
| interrupt handler More... | |
| void | ocs_mgmt_driver_list (ocs_textbuf_t *textbuf, void *driver) |
| void | ocs_mgmt_driver_get_all (ocs_textbuf_t *textbuf, void *driver) |
| int | ocs_mgmt_driver_get (ocs_textbuf_t *textbuf, char *parent, char *name, void *driver) |
| int | ocs_mgmt_driver_exec (char *parent, char *action, void *arg_in, uint32_t arg_in_length, void *arg_out, uint32_t arg_out_length, void *driver) |
| int32_t | ocs_device_init (void) |
| Perform driver wide initialization. More... | |
| int32_t | ocs_device_init_complete (void) |
| Perform device initialization complete. More... | |
| void | ocs_device_shutdown (void) |
| Perform driver wide shutdown actions. More... | |
| void | ocs_device_shutdown_complete (void) |
| Perform driver wide shutdown complete actions. More... | |
| void * | ocs_device_alloc (int32_t nid) |
| void | ocs_device_free (ocs_t *ocs) |
| free ocs device More... | |
| int32_t | ocs_device_interrupts_required (ocs_t *ocs) |
| return the number of interrupts required per HBA More... | |
| int32_t | ocs_device_attach (ocs_t *ocs) |
| Initialize resources when pci devices attach. More... | |
| int32_t | ocs_device_detach (ocs_t *ocs) |
| free resources when pci device detach More... | |
| int32_t | ocs_get_property (const char *prop_name, char *buffer, uint32_t buffer_len) |
| get driver wide property value More... | |
| const char * | ocs_display_name (void *os) |
| return OCS instance display name More... | |
Variables | |
| static ocs_mgmt_functions_t | driver_mgmt_functions |
| void* ocs_device_alloc | ( | int32_t | nid | ) |
Definition at line 153 of file ocs_driver.c.
| int32_t ocs_device_attach | ( | ocs_t * | ocs | ) |
Initialize resources when pci devices attach.
| ocs | pointer to ocs structure |
Definition at line 277 of file ocs_driver.c.
| int32_t ocs_device_detach | ( | ocs_t * | ocs | ) |
free resources when pci device detach
| ocs | pointer to ocs structure |
Definition at line 378 of file ocs_driver.c.
| void ocs_device_free | ( | ocs_t * | ocs | ) |
free ocs device
| ocs | pointer to ocs structure |
Definition at line 227 of file ocs_driver.c.
| int32_t ocs_device_init | ( | void | ) |
Perform driver wide initialization.
This function is called prior to enumerating PCI devices, with subsequent calls to ocs_device_attach. For OCS, this function invokes the back end functions ocs_scsi_tgt_driver_init(), and ocs_scsi_ini_driver_init()
Definition at line 74 of file ocs_driver.c.
| int32_t ocs_device_init_complete | ( | void | ) |
Perform device initialization complete.
This function is called after all PCI device/functions have been enumerated.
Definition at line 109 of file ocs_driver.c.
|
static |
interrupt handler
Interrupt handler
| ocs | pointer to ocs structure |
| vector | Zero-based interrupt vector number. |
Definition at line 364 of file ocs_driver.c.
| int32_t ocs_device_interrupts_required | ( | ocs_t * | ocs | ) |
return the number of interrupts required per HBA
| ocs | pointer to ocs structure |
Definition at line 259 of file ocs_driver.c.
| void ocs_device_shutdown | ( | void | ) |
Perform driver wide shutdown actions.
This function is called prior to detatching devices during a driver unload.
Definition at line 123 of file ocs_driver.c.
| void ocs_device_shutdown_complete | ( | void | ) |
Perform driver wide shutdown complete actions.
This function is called shutdown for all devices has completed
Definition at line 135 of file ocs_driver.c.
| const char* ocs_display_name | ( | void * | os | ) |
return OCS instance display name
returns const char string of OCS instance display name
| os | pointer to OS (ocs_t) object |
Definition at line 469 of file ocs_driver.c.
| int32_t ocs_get_property | ( | const char * | prop_name, |
| char * | buffer, | ||
| uint32_t | buffer_len | ||
| ) |
get driver wide property value
Return valued driver wide property. All property values using this interface are returned as null terminated text.
| prop_name | property name |
| buffer | pointer to buffer |
| buffer_len | length of buffer in bytes |
Definition at line 420 of file ocs_driver.c.
| int ocs_mgmt_driver_exec | ( | char * | parent, |
| char * | action, | ||
| void * | arg_in, | ||
| uint32_t | arg_in_length, | ||
| void * | arg_out, | ||
| uint32_t | arg_out_length, | ||
| void * | driver | ||
| ) |
| int ocs_mgmt_driver_get | ( | ocs_textbuf_t * | textbuf, |
| char * | parent, | ||
| char * | name, | ||
| void * | driver | ||
| ) |
| void ocs_mgmt_driver_get_all | ( | ocs_textbuf_t * | textbuf, |
| void * | driver | ||
| ) |
| void ocs_mgmt_driver_list | ( | ocs_textbuf_t * | textbuf, |
| void * | driver | ||
| ) |
|
static |
Definition at line 57 of file ocs_driver.c.