freebsd-dev/sys/dev/ofw
Poul-Henning Kamp 0b7ed341e1 Change the disk(9) API in order to make device removal more robust.
Previously the "struct disk" were owned by the device driver and this
gave us problems when the device disappared and the users of that device
were not immediately disappearing.

Now the struct disk is allocate with a new call, disk_alloc() and owned
by geom_disk and just abandonned by the device driver when disk_create()
is called.

Unfortunately, this results in a ton of "s/\./->/" changes to device
drivers.

Since I'm doing the sweep anyway, a couple of other API improvements
have been carried out at the same time:

The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to
DISKFLAG_NEEDSGIANT

A version number have been added to disk_create() so that we can detect,
report and ignore binary drivers with old ABI in the future.

Manual page update to follow shortly.
2004-02-18 21:36:53 +00:00
..
ofw_console.c Only create the ofwcons device nodes if it has been initialized, not 2003-09-28 06:51:47 +00:00
ofw_disk.c Change the disk(9) API in order to make device removal more robust. 2004-02-18 21:36:53 +00:00
ofw_pci.h
openfirm.c Use __FBSDID(). 2003-08-24 17:55:58 +00:00
openfirm.h Implement OF_interpret. 2003-06-07 18:34:04 +00:00
openfirmio.c The present defaults for the open and close for device drivers which 2003-09-27 12:01:01 +00:00
openfirmio.h - Add an OFIOCGETPROPLEN ioctl() to get the length of a property. 2003-06-11 18:33:03 +00:00
openpromio.c Use __FBSDID(). 2003-08-24 17:55:58 +00:00
openpromio.h Add a solaris compatible ofw interface for third party software that 2003-06-19 01:40:11 +00:00