FreeBSD/sys/dev/ata/chipsets/ata-siliconimage.c
/*
 * Silicon Image Inc. (SiI) (former CMD) chipset support functions
 */
Silicon Image Inc. (SiI) (former CMD) chipset support functions
Silicon Image Inc . ( SiI ) ( former CMD ) chipset support functions
static int
ata_sii_probe(device_t dev)
{
    struct ata_pci_controller *ctlr = device_get_softc(dev);
    static const struct ata_chip_id ids[] =
    {{ ATA_SII3114,   0x00, SII_MEMIO, SII_4CH,    ATA_SA150, "3114" },
     { ATA_SII3512,   0x02, SII_MEMIO, 0,          ATA_SA150, "3512" },
     { ATA_SII3112,   0x02, SII_MEMIO, 0,          ATA_SA150, "3112" },
     { ATA_SII3112_1, 0x02, SII_MEMIO, 0,          ATA_SA150, "3112" },
     { ATA_SII3512,   0x00, SII_MEMIO, SII_BUG,    ATA_SA150, "3512" },
     { ATA_SII3112,   0x00, SII_MEMIO, SII_BUG,    ATA_SA150, "3112" },
     { ATA_SII3112_1, 0x00, SII_MEMIO, SII_BUG,    ATA_SA150, "3112" },
     { ATA_SII0680,   0x00, SII_MEMIO, SII_SETCLK, ATA_UDMA6, "680" },
     { ATA_CMD649,    0x00, 0,         SII_INTR,   ATA_UDMA5, "(CMD) 649" },
     { ATA_CMD648,    0x00, 0,         SII_INTR,   ATA_UDMA4, "(CMD) 648" },
     { ATA_CMD646,    0x07, 0,         0,          ATA_UDMA2, "(CMD) 646U2" },
     { ATA_CMD646,    0x00, 0,         0,          ATA_WDMA2, "(CMD) 646" },
     { 0, 0, 0, 0, 0, 0}};
    if (pci_get_vendor(dev) != ATA_SILICON_IMAGE_ID)
	return ENXIO;
    if (!(ctlr->chip = ata_match_chip(dev, ids)))
	return ENXIO;
    ata_set_desc(dev);
    ctlr->chipinit = ata_sii_chipinit;
    return (BUS_PROBE_LOW_PRIORITY);
}
static int ata_sii_probe ( device_t dev ) { struct ata_pci_controller * ctlr = device_get_softc ( dev ) ; static const struct ata_chip_id ids [ ] = { { ATA_SII3114 , 0x00 , SII_MEMIO , SII_4CH , ATA_SA150 , " " } , { ATA_SII3512 , 0x02 , SII_MEMIO , 0 , ATA_SA150 , " " } , { ATA_SII3112 , 0x02 , SII_MEMIO , 0 , ATA_SA150 , " " } , { ATA_SII3112_1 , 0x02 , SII_MEMIO , 0 , ATA_SA150 , " " } , { ATA_SII3512 , 0x00 , SII_MEMIO , SII_BUG , ATA_SA150 , " " } , { ATA_SII3112 , 0x00 , SII_MEMIO , SII_BUG , ATA_SA150 , " " } , { ATA_SII3112_1 , 0x00 , SII_MEMIO , SII_BUG , ATA_SA150 , " " } , { ATA_SII0680 , 0x00 , SII_MEMIO , SII_SETCLK , ATA_UDMA6 , " " } , { ATA_CMD649 , 0x00 , 0 , SII_INTR , ATA_UDMA5 , " " } , { ATA_CMD648 , 0x00 , 0 , SII_INTR , ATA_UDMA4 , " " } , { ATA_CMD646 , 0x07 , 0 , 0 , ATA_UDMA2 , " " } , { ATA_CMD646 , 0x00 , 0 , 0 , ATA_WDMA2 , " " } , { 0 , 0 , 0 , 0 , 0 , 0 } } ; if ( pci_get_vendor ( dev ) != ATA_SILICON_IMAGE_ID ) return ENXIO ; if ( ! ( ctlr -> chip = ata_match_chip ( dev , ids ) ) ) return ENXIO ; ata_set_desc ( dev ) ; ctlr -> chipinit = ata_sii_chipinit ; return ( BUS_PROBE_LOW_PRIORITY ) ; }
Silicon Image Inc. (SiI) (former CMD) chipset support functions
Silicon Image Inc . ( SiI ) ( former CMD ) chipset support functions