CVSROOT: /cvs Module name: src Changes by: matt...@cvs.openbsd.org 2011/05/09 16:33:54
Modified files: sys/arch/landisk/dev: wdc_obio.c sys/arch/macppc/dev: wdc_obio.c sys/arch/palm/dev: palm_hdd.c sys/arch/socppc/dev: wdc_mainbus.c sys/dev/ic : wdc.c wdcvar.h sys/dev/isa : wdc_isa.c wdc_isapnp.c sys/dev/pci : pciide.c sys/dev/pcmcia : wdc_pcmcia.c Log message: Refactor queue allocation and initialization into a wdc_alloc_queue() function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@