Beispiel #1
0
static int
ata_devel_allocate(device_t dev)
{
    if (ata_pci_allocate(dev))
	return ENXIO;

    /* setup channel specifics here like offsets to registers etc */

    return 0;
}
/*
 ****************************************************************
 *	Aloca as portas						*
 ****************************************************************
 */
int
ata_stub_allocate (PCIDATA *pci, ATA_CHANNEL *chp)
{
	ata_pci_allocate (pci, chp);

#if (0)	/*******************************************************/
	chp->ch_flags |= ATA_ALWAYS_DMASTAT;
#endif	/*******************************************************/

	return (0);

}	/* end ata_stub_allocate */