* 0 = it worked
* -1 = it failed
*/
-typedef struct {
- void (*bus_create)(ulong busNo, int response);
- void (*bus_destroy)(ulong busNo, int response);
- void (*device_create)(ulong busNo, ulong devNo, int response);
- void (*device_destroy)(ulong busNo, ulong devNo, int response);
- void (*device_pause)(ulong busNo, ulong devNo, int response);
- void (*device_resume)(ulong busNo, ulong devNo, int response);
-} VISORCHIPSET_BUSDEV_RESPONDERS;
+struct visorchipset_busdev_responders {
+ void (*bus_create)(ulong bus_no, int response);
+ void (*bus_destroy)(ulong bus_no, int response);
+ void (*device_create)(ulong bus_no, ulong dev_no, int response);
+ void (*device_destroy)(ulong bus_no, ulong dev_no, int response);
+ void (*device_pause)(ulong bus_no, ulong dev_no, int response);
+ void (*device_resume)(ulong bus_no, ulong dev_no, int response);
+};
/** Register functions (in the bus driver) to get called by visorchipset
* whenever a bus or device appears for which this service partition is
void
visorchipset_register_busdev_client(
struct visorchipset_busdev_notifiers *notifiers,
- VISORCHIPSET_BUSDEV_RESPONDERS *responders,
+ struct visorchipset_busdev_responders *responders,
struct ultra_vbus_deviceinfo *driverInfo);
/** Register functions (in the bus driver) to get called by visorchipset
void
visorchipset_register_busdev_server(
struct visorchipset_busdev_notifiers *notifiers,
- VISORCHIPSET_BUSDEV_RESPONDERS *responders,
+ struct visorchipset_busdev_responders *responders,
struct ultra_vbus_deviceinfo *driverInfo);
typedef void (*SPARREPORTEVENT_COMPLETE_FUNC) (struct controlvm_message *msg,
static void device_destroy_response(ulong busNo, ulong devNo, int response);
static void device_resume_response(ulong busNo, ulong devNo, int response);
-static VISORCHIPSET_BUSDEV_RESPONDERS BusDev_Responders = {
+static struct visorchipset_busdev_responders BusDev_Responders = {
.bus_create = bus_create_response,
.bus_destroy = bus_destroy_response,
.device_create = device_create_response,
void
visorchipset_register_busdev_server(
struct visorchipset_busdev_notifiers *notifiers,
- VISORCHIPSET_BUSDEV_RESPONDERS *responders,
+ struct visorchipset_busdev_responders *responders,
struct ultra_vbus_deviceinfo *driverInfo)
{
down(&NotifierLock);
void
visorchipset_register_busdev_client(
struct visorchipset_busdev_notifiers *notifiers,
- VISORCHIPSET_BUSDEV_RESPONDERS *responders,
+ struct visorchipset_busdev_responders *responders,
struct ultra_vbus_deviceinfo *driverInfo)
{
down(&NotifierLock);
}
if (notified)
/* The callback function just called above is responsible
- * for calling the appropriate VISORCHIPSET_BUSDEV_RESPONDERS
+ * for calling the appropriate visorchipset_busdev_responders
* function, which will call bus_responder()
*/
;
}
if (notified)
/* The callback function just called above is responsible
- * for calling the appropriate VISORCHIPSET_BUSDEV_RESPONDERS
+ * for calling the appropriate visorchipset_busdev_responders
* function, which will call device_responder()
*/
;