FreeBSD/sys/dev/ata/chipsets/ata-amd.c
/*
 * Advanced Micro Devices (AMD) chipset support functions
 */
Advanced Micro Devices (AMD) chipset support functions
Advanced Micro Devices ( AMD ) chipset support functions
static int
ata_amd_probe(device_t dev)
{
    struct ata_pci_controller *ctlr = device_get_softc(dev);
    static const struct ata_chip_id ids[] =
    {{ ATA_AMD756,  0x00, 0x00,              0, ATA_UDMA4, "756" },
     { ATA_AMD766,  0x00, AMD_CABLE|AMD_BUG, 0, ATA_UDMA5, "766" },
     { ATA_AMD768,  0x00, AMD_CABLE,         0, ATA_UDMA5, "768" },
     { ATA_AMD8111, 0x00, AMD_CABLE,         0, ATA_UDMA6, "8111" },
     { ATA_AMD5536, 0x00, 0x00,              0, ATA_UDMA5, "CS5536" },
     { 0, 0, 0, 0, 0, 0}};
    if (pci_get_vendor(dev) != ATA_AMD_ID)
	return ENXIO;
    if (!(ctlr->chip = ata_match_chip(dev, ids)))
	return ENXIO;
    ata_set_desc(dev);
    ctlr->chipinit = ata_amd_chipinit;
    return (BUS_PROBE_LOW_PRIORITY);
}
static int ata_amd_probe ( device_t dev ) { struct ata_pci_controller * ctlr = device_get_softc ( dev ) ; static const struct ata_chip_id ids [ ] = { { ATA_AMD756 , 0x00 , 0x00 , 0 , ATA_UDMA4 , " " } , { ATA_AMD766 , 0x00 , AMD_CABLE | AMD_BUG , 0 , ATA_UDMA5 , " " } , { ATA_AMD768 , 0x00 , AMD_CABLE , 0 , ATA_UDMA5 , " " } , { ATA_AMD8111 , 0x00 , AMD_CABLE , 0 , ATA_UDMA6 , " " } , { ATA_AMD5536 , 0x00 , 0x00 , 0 , ATA_UDMA5 , " " } , { 0 , 0 , 0 , 0 , 0 , 0 } } ; if ( pci_get_vendor ( dev ) != ATA_AMD_ID ) return ENXIO ; if ( ! ( ctlr -> chip = ata_match_chip ( dev , ids ) ) ) return ENXIO ; ata_set_desc ( dev ) ; ctlr -> chipinit = ata_amd_chipinit ; return ( BUS_PROBE_LOW_PRIORITY ) ; }
Advanced Micro Devices (AMD) chipset support functions
Advanced Micro Devices ( AMD ) chipset support functions