extern WV_F_DEV_DISPATCH aoe__mount;
/* Forward declarations. */
-static WV_F_DEV_CTL aoe_bus__dev_ctl_dispatch_;
-static WV_F_DEV_PNP_ID aoe_bus__pnp_id_;
-winvblock__bool aoe_bus__create(void);
-void aoe_bus__free(void);
+static WV_F_DEV_CTL AoeBusDevCtlDispatch_;
+static WV_F_DEV_PNP_ID AoeBusPnpId_;
+winvblock__bool AoeBusCreate(void);
+void AoeBusFree(void);
/* Globals. */
WV_SP_BUS_T AoeBusMain = NULL;
AOE_M_BUS_DOSNAME_
};
-static NTSTATUS STDCALL aoe_bus__dev_ctl_dispatch_(
+static NTSTATUS STDCALL AoeBusDevCtlDispatch_(
IN WV_SP_DEV_T dev,
IN PIRP irp,
IN ULONG POINTER_ALIGNMENT code
IOCTL_FILE_DETACH
);
}
+
default:
DBG("Unsupported IOCTL\n");
return driver__complete_irp(irp, 0, STATUS_NOT_SUPPORTED);
*
* @ret TRUE for success, else FALSE.
*/
-winvblock__bool aoe_bus__create(void) {
+winvblock__bool AoeBusCreate(void) {
WV_SP_BUS_T new_bus;
NTSTATUS status;
goto err_new_bus;
}
/* When the PDO is created, we need to handle PnP ID queries. */
- new_bus->Dev->Ops.PnpId = aoe_bus__pnp_id_;
+ new_bus->Dev->Ops.PnpId = AoeBusPnpId_;
/* Add it as a sub-bus to WinVBlock. */
if (!WvBusAddChild(driver__bus(), new_bus->Dev)) {
DBG("Couldn't add AoE bus to WinVBlock bus!\n");
}
/* Destroy the AoE bus. */
-void aoe_bus__free(void) {
+void AoeBusFree(void) {
if (!AoeBusMain)
/* Nothing to do. */
return;
return;
}
-static winvblock__uint32 STDCALL aoe_bus__pnp_id_(
+static winvblock__uint32 STDCALL AoeBusPnpId_(
IN WV_SP_DEV_T dev,
IN BUS_QUERY_ID_TYPE query_type,
IN OUT WCHAR (*buf)[512]
/* From aoe/bus.c */
extern WV_SP_BUS_T AoeBusMain;
-extern winvblock__bool aoe_bus__create(void);
-extern void aoe_bus__free(void);
+extern winvblock__bool AoeBusCreate(void);
+extern void AoeBusFree(void);
/* Forward declarations. */
struct aoe__disk_type_;
DriverObject->DriverUnload = aoe__unload_;
aoe__started_ = TRUE;
- if (!aoe_bus__create()) {
+ if (!AoeBusCreate()) {
DBG("Unable to create AoE bus!\n");
aoe__unload_(DriverObject);
return STATUS_INSUFFICIENT_RESOURCES;
if (!aoe__started_)
return;
/* Destroy the AoE bus. */
- aoe_bus__free();
+ AoeBusFree();
/* Stop the AoE protocol. */
Protocol_Stop();
/* If we're not already shutting down, signal the event. */
/* Release the global spin-lock. */
KeReleaseSpinLock(&aoe__spinlock_, Irql);
- aoe_bus__free();
+ AoeBusFree();
aoe__started_ = FALSE;
DBG("Exit\n");
}