http://git.etherboot.org
/
people
/
sha0
/
winvblock.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[aoe] Rename aoe_bus to AoeBusMain
[people/sha0/winvblock.git]
/
src
/
aoe
/
bus.c
diff --git
a/src/aoe/bus.c
b/src/aoe/bus.c
index
026ebb2
..
5443934
100644
(file)
--- a/
src/aoe/bus.c
+++ b/
src/aoe/bus.c
@@
-51,7
+51,7
@@
winvblock__bool aoe_bus__create(void);
void aoe_bus__free(void);
/* Globals. */
void aoe_bus__free(void);
/* Globals. */
-WV_SP_BUS_T
aoe_bus
= NULL;
+WV_SP_BUS_T
AoeBusMain
= NULL;
static UNICODE_STRING AoeBusName_ = {
sizeof AOE_M_BUS_NAME_,
sizeof AOE_M_BUS_NAME_,
static UNICODE_STRING AoeBusName_ = {
sizeof AOE_M_BUS_NAME_,
sizeof AOE_M_BUS_NAME_,
@@
-104,7
+104,7
@@
winvblock__bool aoe_bus__create(void) {
NTSTATUS status;
/* We should only be called once. */
NTSTATUS status;
/* We should only be called once. */
- if (
aoe_bus
) {
+ if (
AoeBusMain
) {
DBG("AoE bus already created\n");
return FALSE;
}
DBG("AoE bus already created\n");
return FALSE;
}
@@
-131,13
+131,13
@@
winvblock__bool aoe_bus__create(void) {
goto err_dos_symlink;
}
/* All done. */
goto err_dos_symlink;
}
/* All done. */
-
aoe_bus
= new_bus;
+
AoeBusMain
= new_bus;
return TRUE;
IoDeleteSymbolicLink(&AoeBusDosname_);
err_dos_symlink:
return TRUE;
IoDeleteSymbolicLink(&AoeBusDosname_);
err_dos_symlink:
- IoDeleteDevice(
aoe_bus
->Dev->Self);
+ IoDeleteDevice(
AoeBusMain
->Dev->Self);
err_add_child:
WvDevFree(new_bus->Dev);
err_add_child:
WvDevFree(new_bus->Dev);
@@
-148,16
+148,16
@@
winvblock__bool aoe_bus__create(void) {
/* Destroy the AoE bus. */
void aoe_bus__free(void) {
/* Destroy the AoE bus. */
void aoe_bus__free(void) {
- if (!
aoe_bus
)
+ if (!
AoeBusMain
)
/* Nothing to do. */
return;
IoDeleteSymbolicLink(&AoeBusDosname_);
/* Nothing to do. */
return;
IoDeleteSymbolicLink(&AoeBusDosname_);
- IoDeleteDevice(
aoe_bus
->Dev->Self);
+ IoDeleteDevice(
AoeBusMain
->Dev->Self);
#if 0
#if 0
- bus__remove_child(driver__bus(),
aoe_bus
->Dev);
+ bus__remove_child(driver__bus(),
AoeBusMain
->Dev);
#endif
#endif
- WvDevFree(
aoe_bus
->Dev);
+ WvDevFree(
AoeBusMain
->Dev);
return;
}
return;
}