people/sha0/winvblock.git
11 years ago[bus] Rename bus__create_pdo_ to WvBusCreatePdo_
Shao Miller [Sun, 19 Dec 2010 16:22:28 +0000 (11:22 -0500)]
[bus] Rename bus__create_pdo_ to WvBusCreatePdo_

11 years ago[bus] Rename bus__free_ to WvBusFree_
Shao Miller [Sun, 19 Dec 2010 16:21:31 +0000 (11:21 -0500)]
[bus] Rename bus__free_ to WvBusFree_

11 years ago[bus] Rename bus_pnp__dispatch to WvBusPnpDispatch
Shao Miller [Sun, 19 Dec 2010 16:06:23 +0000 (11:06 -0500)]
[bus] Rename bus_pnp__dispatch to WvBusPnpDispatch

11 years ago[bus] Rename bus_dev_ctl__dispatch to WvBusDevCtlDispatch
Shao Miller [Sun, 19 Dec 2010 16:03:11 +0000 (11:03 -0500)]
[bus] Rename bus_dev_ctl__dispatch to WvBusDevCtlDispatch

11 years ago[bus] Remove unused member SpinLock
Shao Miller [Sun, 19 Dec 2010 15:56:46 +0000 (10:56 -0500)]
[bus] Remove unused member SpinLock

11 years ago[bus] Introduce WvBusCancelWorkItems
Shao Miller [Sun, 19 Dec 2010 15:49:05 +0000 (10:49 -0500)]
[bus] Introduce WvBusCancelWorkItems

A bus thread routine or whichever thread calls
WvBusProcessWorkItems() should call this new function
if the bus is to be stopped.  It frees the memory
allocated for each pending work item.

Also fix the comments for WvBusStartThread().

11 years ago[bus] Use Stop member instead of Thread for thread shutdown
Shao Miller [Sun, 19 Dec 2010 15:25:15 +0000 (10:25 -0500)]
[bus] Use Stop member instead of Thread for thread shutdown

11 years ago[bus] Rename member thread to Thread
Shao Miller [Sun, 19 Dec 2010 15:20:44 +0000 (10:20 -0500)]
[bus] Rename member thread to Thread

Yippee.

11 years ago[bus] Move work_items and work_items_lock as private
Shao Miller [Sun, 19 Dec 2010 15:18:25 +0000 (10:18 -0500)]
[bus] Move work_items and work_items_lock as private

Move these members into the "private" section of the bus
structure.  They're renamed, as well.

Also, rename work_signal to ThreadSignal.  It should
remain "public," since one can override a bus' thread
routine (so one should be able to use that signal).

11 years ago[bus] Remove members dev_name and dos_dev_name
Shao Miller [Sun, 19 Dec 2010 15:07:20 +0000 (10:07 -0500)]
[bus] Remove members dev_name and dos_dev_name

Move responsibility for bus device naming out of the bus
module and into the caller.

The AoE module is a bit mixed-up just now and doesn't
work.  It's currently going to try to create a symlink
but the PDO for the AoE bus is not going to have been
named by the bus module.  What we really want is for the
AoE bus' _FDO_ to be the named device...  I think.

11 years ago[bus] Move member prev_free to BusPrivate_.PrevFree
Shao Miller [Sun, 19 Dec 2010 07:42:32 +0000 (02:42 -0500)]
[bus] Move member prev_free to BusPrivate_.PrevFree

Only the bus module should really manipulate this member.

11 years ago[bus] Remove unused member tracking
Shao Miller [Sun, 19 Dec 2010 07:38:48 +0000 (02:38 -0500)]
[bus] Remove unused member tracking

11 years ago[bus] Remove unused member ext
Shao Miller [Sun, 19 Dec 2010 07:37:53 +0000 (02:37 -0500)]
[bus] Remove unused member ext

11 years ago[bus] Rename device member to Dev
Shao Miller [Sun, 19 Dec 2010 07:36:39 +0000 (02:36 -0500)]
[bus] Rename device member to Dev

11 years ago[bus] Rename bus__start_thread to WvBusStartThread
Shao Miller [Sun, 19 Dec 2010 07:29:54 +0000 (02:29 -0500)]
[bus] Rename bus__start_thread to WvBusStartThread

11 years ago[bus] Rename bus__process_work_items to WvBusProcessWorkItems
Shao Miller [Sun, 19 Dec 2010 07:27:58 +0000 (02:27 -0500)]
[bus] Rename bus__process_work_items to WvBusProcessWorkItems

11 years ago[bus] Rename bus__get to WvBusFromDev
Shao Miller [Sun, 19 Dec 2010 07:25:30 +0000 (02:25 -0500)]
[bus] Rename bus__get to WvBusFromDev

11 years ago[bus] Rename bus__add_child to WvBusAddChild
Shao Miller [Fri, 17 Dec 2010 23:13:17 +0000 (18:13 -0500)]
[bus] Rename bus__add_child to WvBusAddChild

11 years ago[bus] Rename bus__create to WvBusCreate
Shao Miller [Fri, 17 Dec 2010 23:12:08 +0000 (18:12 -0500)]
[bus] Rename bus__create to WvBusCreate

11 years ago[bus] Rename bus__init to WvBusInit
Shao Miller [Fri, 17 Dec 2010 23:06:14 +0000 (18:06 -0500)]
[bus] Rename bus__init to WvBusInit

11 years ago[bus] Remove unused module init/shutdown declarations
Shao Miller [Fri, 17 Dec 2010 23:02:54 +0000 (18:02 -0500)]
[bus] Remove unused module init/shutdown declarations

They should have been removed in a previous commit.

11 years ago[bus] Rename bus__get_dev_capabilities to WvBusGetDevCapabilities
Shao Miller [Fri, 17 Dec 2010 23:00:12 +0000 (18:00 -0500)]
[bus] Rename bus__get_dev_capabilities to WvBusGetDevCapabilities

11 years ago[bus] Rename bus__thread_func to WV_F_BUS_THREAD
Shao Miller [Fri, 17 Dec 2010 22:53:13 +0000 (17:53 -0500)]
[bus] Rename bus__thread_func to WV_F_BUS_THREAD

Using the naming convention briefly detailed in
commit 6a99f82ba3.

11 years ago[bus] Rename bus__type to WV_S_BUS_T
Shao Miller [Fri, 17 Dec 2010 22:48:30 +0000 (17:48 -0500)]
[bus] Rename bus__type to WV_S_BUS_T

Using the naming convention briefly detailed in
commit 6a99f82ba3.

11 years ago[bus] Cosmetic change for header inclusion macro
Shao Miller [Fri, 17 Dec 2010 22:36:53 +0000 (17:36 -0500)]
[bus] Cosmetic change for header inclusion macro

11 years ago[device,bus] Fix sizeof use in initialization
Shao Miller [Fri, 17 Dec 2010 22:34:39 +0000 (17:34 -0500)]
[device,bus] Fix sizeof use in initialization

Oops!

11 years ago[bus] Introduce PDO node addition/removal functions
Shao Miller [Fri, 17 Dec 2010 22:33:07 +0000 (17:33 -0500)]
[bus] Introduce PDO node addition/removal functions

WV_S_BUS_NODE is an opaque type representing a child
PDO node on a bus.

WvBusInitNode() will initialize such a node and associate
it with the DEVICE_OBJECT that is its physical device
object.

WvBusAddNode() will schedule the addition of a node to a
bus.  When bus__process_work_items() is called for the
bus, the addition will take place.

WvBusRemoveNode() will schedule the removal of a node
from a bus.  When bus__process_work_items() is called
for the bus, the removal will take place.

bus__process_work_items() should be called by the bus'
thread routine, because it expects to have sole control
over the linked list of bus nodes (no race conditions,
please).

And of course, you might notice the i'th coding style
change.  This one is more of a "when in Rome..." change.

  WV_ttt_mmm_nnn

  WV  : "WinVBlock"
  ttt : type; can be a combination of
      E : enum
      S : struct
      U : union
      A : array
      F : function
      P : pointer
      I : integer
      M : #defined macro
  mmm : module
  nnn : type name

11 years ago[bus] Add bus__init for initializing to defaults
Shao Miller [Thu, 16 Dec 2010 03:51:43 +0000 (22:51 -0500)]
[bus] Add bus__init for initializing to defaults

Now you know why a previous commit renamed the older
bus__init() function. :)

11 years ago[device] Add device__init for initializing to defaults
Shao Miller [Thu, 16 Dec 2010 03:35:30 +0000 (22:35 -0500)]
[device] Add device__init for initializing to defaults

Now you know why a previous commit renamed the older
device__init() function. :)

11 years ago[ramdisk] Rename ramdisk__init to ramdisk__module_init
Shao Miller [Thu, 16 Dec 2010 03:08:08 +0000 (22:08 -0500)]
[ramdisk] Rename ramdisk__init to ramdisk__module_init

11 years ago[filedisk] Rename filedisk__init to filedisk__module_init
Shao Miller [Thu, 16 Dec 2010 03:05:46 +0000 (22:05 -0500)]
[filedisk] Rename filedisk__init to filedisk__module_init

11 years ago[disk] Rename disk__init to disk__module_init
Shao Miller [Thu, 16 Dec 2010 03:03:13 +0000 (22:03 -0500)]
[disk] Rename disk__init to disk__module_init

11 years ago[bus,device] Allow for threaded PDO creation on a bus
Shao Miller [Wed, 15 Dec 2010 15:20:52 +0000 (10:20 -0500)]
[bus,device] Allow for threaded PDO creation on a bus

bus__add_child() will add a PDO creation request to the
work item queue for a threaded bus, then wait for it to
complete.  We do this so that the PDO is created in the
bus' thread context.  For example, if the AoE driver were
to request a PDO, we want that PDO created by the WinVBlock
driver (the main bus' thread should be that context).

We add a completion signal pointer to work items, initialize
the signal upon adding a work item to a bus' queue, and
signal completion when a work item has been completed.

11 years ago[bus] Let a threaded bus free itself
Shao Miller [Wed, 15 Dec 2010 03:13:43 +0000 (22:13 -0500)]
[bus] Let a threaded bus free itself

Hook device__type::ops.free() so that when called, it
schedules a freeing action but doesn't actually free.

11 years ago[bus,driver] Introduce bus threading
Shao Miller [Wed, 15 Dec 2010 02:55:55 +0000 (21:55 -0500)]
[bus,driver] Introduce bus threading

The driver now calls bus__start_thread() on the main bus.

One can implement their own bus__thread_func routine and
assign it to the bus::thread member.  If one does so, one
should call bus__process_work_items() within the thread's
loop, and one should be responsible for freeing their bus.

11 years ago[bus] Introduce work item queue and processing
Shao Miller [Wed, 15 Dec 2010 01:33:17 +0000 (20:33 -0500)]
[bus] Introduce work item queue and processing

bus__add_work_item_() will add a work item.

bus__get_work_item_() will get and dequeue a work item.

bus__process_work_items() will walk the work item queue
and process each work item.

11 years ago[bus/pnp,disk/pnp,aoe] Get AoE sub-bus to work
Shao Miller [Tue, 14 Dec 2010 05:19:48 +0000 (00:19 -0500)]
[bus/pnp,disk/pnp,aoe] Get AoE sub-bus to work

Added some debugging messages to bus/pnp.c and disk/pnp.c.

Added a few PnP routines to bus/pnp.c.

Fixed a bug in aoe/bus.c where a hardware ID string was not
properly terminated.

Changed the IDs reported in aoe/bus.c.

A little note: The main WinVBlock bus might be better off
creating/deleting PDOs in its own thread context.

11 years ago[irp,aoe] Remove mini IRP handling scheme
Shao Miller [Mon, 13 Dec 2010 23:37:40 +0000 (18:37 -0500)]
[irp,aoe] Remove mini IRP handling scheme

Goodbye, mini IRP handling scheme.

Since AoE still had remnants but doesn't yet work as a
sub-bus anyway, some fair changes were made to the AoE
module, such as renaming functions and changing the
IRP_MJ_DEVICE_CONTROL; aoe_bus__dev_ctl_dispatch_().

11 years ago[project] Don't use mini IRP handling for IRP_MJ_PNP
Shao Miller [Mon, 13 Dec 2010 21:50:08 +0000 (16:50 -0500)]
[project] Don't use mini IRP handling for IRP_MJ_PNP

Use device::irp_mj.pnp(), instead.

This is the last of the IRP_MJ_* major functions that were
previously handled with the mini IRP handling scheme.

11 years ago[driver,device] Remove driver__default_dispatch function
Shao Miller [Mon, 13 Dec 2010 16:43:16 +0000 (11:43 -0500)]
[driver,device] Remove driver__default_dispatch function

driver__dispatch_() will handle the STATUS_NOT_SUPPORTED case.

11 years ago[project] Don't use mini IRP handling for IRP_MJ_SCSI
Shao Miller [Mon, 13 Dec 2010 16:35:09 +0000 (11:35 -0500)]
[project] Don't use mini IRP handling for IRP_MJ_SCSI

Use device::irp_mj.scsi(), instead.

11 years ago[project] Don't use mini IRP handling for IRP_MJ_DEVICE_CONTROL
Shao Miller [Mon, 13 Dec 2010 06:49:03 +0000 (01:49 -0500)]
[project] Don't use mini IRP handling for IRP_MJ_DEVICE_CONTROL

Use device::irp_mj.dev_ctl(), instead.

11 years ago[project] Don't use mini IRP handling for IRP_MJ_SYSTEM_CONTROL
Shao Miller [Mon, 13 Dec 2010 05:43:06 +0000 (00:43 -0500)]
[project] Don't use mini IRP handling for IRP_MJ_SYSTEM_CONTROL

Use device::irp_mj.sys_ctl(), instead.

11 years ago[project] Don't use mini IRP handling for IRP_MJ_CREATE/CLOSE
Shao Miller [Mon, 13 Dec 2010 05:26:17 +0000 (00:26 -0500)]
[project] Don't use mini IRP handling for IRP_MJ_CREATE/CLOSE

There weren't really special implementations for bus and disk.

11 years ago[project] Don't use mini IRP handling for IRP_MJ_POWER
Shao Miller [Mon, 13 Dec 2010 05:13:41 +0000 (00:13 -0500)]
[project] Don't use mini IRP handling for IRP_MJ_POWER

Instead of using the mini IRP handling logic, we will
handle IRP_MJ_POWER differently.  This might be a trend...

Also introduced are:

driver__complete_irp() for common IRP completion logic.

device__dispatch_func typedef for IRP dispatch routines.

device::irp_mj is an pointer to an IRP handling table based
on major function code.

11 years ago[bus] Minor cosmetic changes
Shao Miller [Mon, 13 Dec 2010 02:50:51 +0000 (21:50 -0500)]
[bus] Minor cosmetic changes

11 years ago[bus/pnp] Rename Bus_IoCompletionRoutine to bus_pnp__io_completion_
Shao Miller [Mon, 13 Dec 2010 02:46:49 +0000 (21:46 -0500)]
[bus/pnp] Rename Bus_IoCompletionRoutine to bus_pnp__io_completion_

11 years ago[bus] Rename power function to bus__power_
Shao Miller [Mon, 13 Dec 2010 02:42:41 +0000 (21:42 -0500)]
[bus] Rename power function to bus__power_

11 years ago[aoe] Introduce AoE bus module
Shao Miller [Mon, 13 Dec 2010 01:40:25 +0000 (20:40 -0500)]
[aoe] Introduce AoE bus module

Currently not functional.  It seems that we need a major
IRP handling revisit. *sigh*

11 years ago[bus] Handle PnP ID queries
Shao Miller [Mon, 13 Dec 2010 01:38:58 +0000 (20:38 -0500)]
[bus] Handle PnP ID queries

11 years ago[disk,device] Move disk__type::DiskNumber to device__type::dev_num
Shao Miller [Sun, 12 Dec 2010 03:18:06 +0000 (22:18 -0500)]
[disk,device] Move disk__type::DiskNumber to device__type::dev_num

We can number all devices on a bus, rather than just disks.

11 years ago[bus/dev_ctl] Minor cosmetic changes
Shao Miller [Sun, 12 Dec 2010 02:43:37 +0000 (21:43 -0500)]
[bus/dev_ctl] Minor cosmetic changes

11 years ago[aoe] Even more cosmetic changes
Shao Miller [Sun, 12 Dec 2010 02:23:15 +0000 (21:23 -0500)]
[aoe] Even more cosmetic changes

And that won't be the end of it.

11 years ago[bus] Rename bus__type::first_child_ptr to first_child
Shao Miller [Sun, 12 Dec 2010 01:48:54 +0000 (20:48 -0500)]
[bus] Rename bus__type::first_child_ptr to first_child

11 years ago[aoe] More cosmetic changes
Shao Miller [Sun, 12 Dec 2010 01:40:57 +0000 (20:40 -0500)]
[aoe] More cosmetic changes

11 years ago[disk,device] Move PnP ID query handling into device module
Shao Miller [Sat, 11 Dec 2010 21:55:34 +0000 (16:55 -0500)]
[disk,device] Move PnP ID query handling into device module

We should really allow for PnP ID query handling beyond just
for disks, so we now handle such queries as a device operation.

11 years ago[device] Rename make_dev_pdo to device__make_pdo_
Shao Miller [Sat, 11 Dec 2010 20:20:50 +0000 (15:20 -0500)]
[device] Rename make_dev_pdo to device__make_pdo_

11 years ago[device] Rename free_dev to device__free_dev_
Shao Miller [Sat, 11 Dec 2010 20:19:29 +0000 (15:19 -0500)]
[device] Rename free_dev to device__free_dev_

11 years ago[device] Remove device__init module startup function
Shao Miller [Sat, 11 Dec 2010 20:17:49 +0000 (15:17 -0500)]
[device] Remove device__init module startup function

There's not really a need to track all devices in a linked
list.  So now the module is purely library.

11 years ago[device] Minor cosmetic changes.
Shao Miller [Sat, 11 Dec 2010 20:05:07 +0000 (15:05 -0500)]
[device] Minor cosmetic changes.

11 years ago[device] Don't use device__close_decl macro
Shao Miller [Sat, 11 Dec 2010 19:43:43 +0000 (14:43 -0500)]
[device] Don't use device__close_decl macro

Use a typedef, instead.

11 years ago[device] Don't use winvblock__def_struct for device__type
Shao Miller [Sat, 11 Dec 2010 19:32:42 +0000 (14:32 -0500)]
[device] Don't use winvblock__def_struct for device__type

11 years ago[device,driver,protocol] Remove portable.h #include from header
Shao Miller [Sat, 11 Dec 2010 19:10:53 +0000 (14:10 -0500)]
[device,driver,protocol] Remove portable.h #include from header

For consistency with many other headers.

11 years ago[device] Don't use winvblock__def_enum for device__state
Shao Miller [Sat, 11 Dec 2010 19:08:12 +0000 (14:08 -0500)]
[device] Don't use winvblock__def_enum for device__state

And rename its values.

11 years ago[bus,driver] Move attach_fdo into driver module
Shao Miller [Sat, 11 Dec 2010 17:50:34 +0000 (12:50 -0500)]
[bus,driver] Move attach_fdo into driver module

attach_fdo is really a _driver_ thing, rather than a
_bus_ thing, so we move it into the driver module as
driver__attach_fdo_().

This allows us to remove bus module initialization,
meaning the bus module should be purely library now.

Our driver's AddDevice routine (driver__attach_fdo_) is
hard-coded to only attach a maximum of one FDO, which
will be the main WinVBlock bus.  This could change later.

11 years ago[bus] Rename sys_ctl to bus__sys_ctl_
Shao Miller [Sat, 11 Dec 2010 02:56:22 +0000 (21:56 -0500)]
[bus] Rename sys_ctl to bus__sys_ctl_

11 years ago[bus] Make callers of bus__add_child responsible...
Shao Miller [Thu, 9 Dec 2010 21:58:40 +0000 (16:58 -0500)]
[bus] Make callers of bus__add_child responsible...

...for freeing their device if bus__add_child() fails.
This is better than bus__add_child() freeing it, for the sake
of consistency in the code.  I accidentally re-freed not
once, but twice, while trying some things out.

11 years ago[wv_stdlib] Use appropriate pool tags
Shao Miller [Thu, 9 Dec 2010 21:26:39 +0000 (16:26 -0500)]
[wv_stdlib] Use appropriate pool tags

For AoE:
"WinAoE" with tag 'EoAW'.

For WinVBlock:
"WinVBlock" with tag 'klBV'.

11 years ago[bus,bus/pnp,disk/pnp] Don't use LowerDeviceObject if NULL
Shao Miller [Thu, 9 Dec 2010 20:56:47 +0000 (15:56 -0500)]
[bus,bus/pnp,disk/pnp] Don't use LowerDeviceObject if NULL

A bus might not be an FDO on top of some other PDO, so we should
only call a bus' "LowerDeviceObject" if it exists.

11 years ago[bus] Add do-nothing bus__init_ function
Shao Miller [Thu, 9 Dec 2010 16:58:09 +0000 (11:58 -0500)]
[bus] Add do-nothing bus__init_ function

In order to have a sub-bus as a node on a bus, we need to
implement a device__type::init function, since bus__add_child()
will call it on a child device.

11 years ago[device] Remove device__init_decl macro
Shao Miller [Thu, 9 Dec 2010 16:43:11 +0000 (11:43 -0500)]
[device] Remove device__init_decl macro

Use device__init_func typedef, instead.

11 years ago[driver,bus] Move the "boot bus" into the driver module
Shao Miller [Thu, 9 Dec 2010 06:53:44 +0000 (01:53 -0500)]
[driver,bus] Move the "boot bus" into the driver module

It's now called driver__bus_fdo_ and is accessible via
driver__bus().  This involved some code shuffling.

Additionally, bus__create_pdo_() has been modified to
actually produce a vanilla bus PDO without hard-coding
the "boot bus" logic into it.

We also adjust bus__module_init() to move the "boot bus"
code out.

This effort is towards modules/drivers creating their
own bus.

11 years ago[device] Use typedef for device__create_pdo_func
Shao Miller [Thu, 9 Dec 2010 04:48:23 +0000 (23:48 -0500)]
[device] Use typedef for device__create_pdo_func

Instead of the device__create_pdo_decl() macro and
device__create_pdo_routine function pointer typedef.

11 years ago[driver] Rename driver_dispatch to driver__dispatch_
Shao Miller [Wed, 8 Dec 2010 21:42:06 +0000 (16:42 -0500)]
[driver] Rename driver_dispatch to driver__dispatch_

11 years ago[driver] Rename driver_dispatch_not_supported to driver__dispatch_not_supported_
Shao Miller [Wed, 8 Dec 2010 21:41:06 +0000 (16:41 -0500)]
[driver] Rename driver_dispatch_not_supported to driver__dispatch_not_supported_

11 years ago[driver] Rename os_load_opts to driver__os_load_opts_
Shao Miller [Wed, 8 Dec 2010 21:17:44 +0000 (16:17 -0500)]
[driver] Rename os_load_opts to driver__os_load_opts_

11 years ago[driver] Rename Driver_Globals_Started to driver__started_
Shao Miller [Wed, 8 Dec 2010 21:13:15 +0000 (16:13 -0500)]
[driver] Rename Driver_Globals_Started to driver__started_

11 years ago[driver] Rename Driver_Globals_StateHandle to driver__state_handle_
Shao Miller [Wed, 8 Dec 2010 21:12:16 +0000 (16:12 -0500)]
[driver] Rename Driver_Globals_StateHandle to driver__state_handle_

11 years ago[driver] Rename Driver_Unload to driver__unload_
Shao Miller [Wed, 8 Dec 2010 21:11:01 +0000 (16:11 -0500)]
[driver] Rename Driver_Unload to driver__unload_

11 years ago[device] Correct the return type for device__set
Shao Miller [Wed, 8 Dec 2010 21:06:44 +0000 (16:06 -0500)]
[device] Correct the return type for device__set

11 years ago[driver] Minor style/cosmetic changes
Shao Miller [Wed, 8 Dec 2010 21:04:23 +0000 (16:04 -0500)]
[driver] Minor style/cosmetic changes

Undoing all of the hard work that indent.sh did. *sigh*

11 years ago[bus] Track boot__module_up_ as TRUE a bit earlier
Shao Miller [Wed, 8 Dec 2010 19:44:50 +0000 (14:44 -0500)]
[bus] Track boot__module_up_ as TRUE a bit earlier

We obviously have to track 'bus__module_up_' as 'TRUE'
_before_ the call to bus__create().  Oops.

11 years ago[bus] Require module initialization for bus__create
Shao Miller [Wed, 8 Dec 2010 18:44:26 +0000 (13:44 -0500)]
[bus] Require module initialization for bus__create

Just like the previous commit regarding bus__add_child().

11 years ago[bus] Track if the bus module has been initialized
Shao Miller [Wed, 8 Dec 2010 18:23:06 +0000 (13:23 -0500)]
[bus] Track if the bus module has been initialized

Since bus__add_child() is a library function, we don't really
want a caller using it unless the WinVBlock driver is
actually running.  We now track module initialization status.

11 years ago[bus] Rename bus__finalize to bus__module_shutdown
Shao Miller [Wed, 8 Dec 2010 18:10:12 +0000 (13:10 -0500)]
[bus] Rename bus__finalize to bus__module_shutdown

11 years ago[bus] Rename bus__init to bus__module_init
Shao Miller [Wed, 8 Dec 2010 17:52:43 +0000 (12:52 -0500)]
[bus] Rename bus__init to bus__module_init

Because 'bus__init' seems more like something you'd
do to a particular bus instance.

11 years ago[bus] Rename Bus_GetDeviceCapabilities to bus__get_dev_capabilities
Shao Miller [Wed, 8 Dec 2010 17:43:44 +0000 (12:43 -0500)]
[bus] Rename Bus_GetDeviceCapabilities to bus__get_dev_capabilities

11 years ago[bus] Don't use winvblock__def_struct for bus__type
Shao Miller [Wed, 8 Dec 2010 17:38:46 +0000 (12:38 -0500)]
[bus] Don't use winvblock__def_struct for bus__type

11 years ago[bus] Rename create_pdo to bus__create_pdo_
Shao Miller [Wed, 8 Dec 2010 17:17:59 +0000 (12:17 -0500)]
[bus] Rename create_pdo to bus__create_pdo_

11 years ago[bus] Rename free_bus to bus__free_
Shao Miller [Wed, 8 Dec 2010 17:15:56 +0000 (12:15 -0500)]
[bus] Rename free_bus to bus__free_

11 years ago[bus] Rename bus_list to bus__list_
Shao Miller [Wed, 8 Dec 2010 17:15:07 +0000 (12:15 -0500)]
[bus] Rename bus_list to bus__list_

11 years ago[bus] Rename bus_list_lock to bus__list_lock_
Shao Miller [Wed, 8 Dec 2010 17:14:23 +0000 (12:14 -0500)]
[bus] Rename bus_list_lock to bus__list_lock_

11 years ago[bus] Rename boot_bus_fdo to bus__boot_fdo_
Shao Miller [Wed, 8 Dec 2010 17:13:22 +0000 (12:13 -0500)]
[bus] Rename boot_bus_fdo to bus__boot_fdo_

11 years ago[bus] Minor style/cosmetic changes
Shao Miller [Wed, 8 Dec 2010 16:02:23 +0000 (11:02 -0500)]
[bus] Minor style/cosmetic changes

Undoing all of the hard work that indent.sh did. *sigh*

11 years ago[device] Introduce device__set function
Shao Miller [Wed, 8 Dec 2010 14:52:33 +0000 (09:52 -0500)]
[device] Introduce device__set function

Use this new device__set() to set a 'device' pointer for
a 'DEVICE_OBJECT'.

11 years ago[bus] Rename bus__get_ptr to bus__get
Shao Miller [Wed, 8 Dec 2010 14:29:46 +0000 (09:29 -0500)]
[bus] Rename bus__get_ptr to bus__get

And use a function instead of a macro.

11 years ago[device] Introduce device__get function
Shao Miller [Wed, 8 Dec 2010 07:06:43 +0000 (02:06 -0500)]
[device] Introduce device__get function

Use this new device__get() to get a 'device' pointer from
a 'PDEVICE_OBJECT' instead of the old casting.  We still
need to change the casting used when _setting_ it, though.

11 years ago[aoe] Rename get_aoe_disk_ptr to aoe__get_
Shao Miller [Wed, 8 Dec 2010 06:15:36 +0000 (01:15 -0500)]
[aoe] Rename get_aoe_disk_ptr to aoe__get_

11 years ago[aoe] Rename aoe_disk_list to aoe__disk_list_
Shao Miller [Wed, 8 Dec 2010 05:46:38 +0000 (00:46 -0500)]
[aoe] Rename aoe_disk_list to aoe__disk_list_

11 years ago[aoe] Rename aoe_disk_list_lock to aoe__disk_list_lock_
Shao Miller [Wed, 8 Dec 2010 05:45:55 +0000 (00:45 -0500)]
[aoe] Rename aoe_disk_list_lock to aoe__disk_list_lock_