kernels/linux-2.4.0/arch/parisc/kernel/lba_pci.c
/**************************************************************************
**
**   LBA initialization code (HW and SW)
**
**   o identify LBA chip itself
**   o initialize LBA chip modes (HardFail)
**   o FIXME: initialize DMA hints for reasonable defaults
**   o enable configuration functions
**   o call pci_register_ops() to discover devs (fixup/fixup_bus get invoked)
**
**************************************************************************/
LBA initialization code (HW and SW)
o identify LBA chip itself
o initialize LBA chip modes (HardFail)
o FIXME: initialize DMA hints for reasonable defaults
o enable configuration functions
o call pci_register_ops() to discover devs (fixup/fixup_bus get invoked)
LBA initialization code ( HW and SW ) o identify LBA chip itself o initialize LBA chip modes ( HardFail ) o FIXME : initialize DMA hints for reasonable defaults o enable configuration functions o call pci_register_ops () to discover devs ( fixup / fixup_bus get invoked )
static void
lba_hw_init(struct lba_device *d)
{
	u32 stat;
        stat = READ_REG32(d->hba.base_addr + LBA_STAT_CTL);
	WRITE_REG32(stat | HF_ENABLE, d->hba.base_addr + LBA_STAT_CTL);
}
static void lba_hw_init ( struct lba_device * d ) { u32 stat ; stat = READ_REG32 ( d -> hba . base_addr + LBA_STAT_CTL ) ; WRITE_REG32 ( stat | HF_ENABLE , d -> hba . base_addr + LBA_STAT_CTL ) ; }
LBA initialization code (HW and SW)
o identify LBA chip itself
o initialize LBA chip modes (HardFail)
o FIXME: initialize DMA hints for reasonable defaults
o enable configuration functions
o call pci_register_ops() to discover devs (fixup/fixup_bus get invoked)
LBA initialization code ( HW and SW ) o identify LBA chip itself o initialize LBA chip modes ( HardFail ) o FIXME : initialize DMA hints for reasonable defaults o enable configuration functions o call pci_register_ops () to discover devs ( fixup / fixup_bus get invoked )
/* Set HF mode as the default (vs. -1 mode). */ /*
	** FIXME: Hint registers are programmed with default hint
	** values by firmware. Hints should be sane even if we
	** can't reprogram them the way drivers want.
	*/