Lines Matching defs:pci
8 #include <linux/pci.h>
64 MODULE_DEVICE_TABLE(pci, snd_ymfpci_ids);
77 if (chip->pci->device >= 0x0010) { /* YMF 744/754 */
81 io_port = pci_resource_start(chip->pci, 2);
132 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci));
133 gameport_set_dev_parent(gp, &chip->pci->dev);
137 if (chip->pci->device >= 0x0010) /* YMF 744/754 */
138 pci_write_config_word(chip->pci, PCIR_DSXG_JOYBASE, io_port);
140 pci_write_config_word(chip->pci, PCIR_DSXG_LEGACY, legacy_ctrl | YMFPCI_LEGACY_JPEN);
141 pci_write_config_word(chip->pci, PCIR_DSXG_ELEGACY, legacy_ctrl2);
164 static int snd_card_ymfpci_probe(struct pci_dev *pci,
184 err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE,
205 fm_port[dev] = pci_resource_start(pci, 1);
211 pci_write_config_word(pci, PCIR_DSXG_FMBASE, fm_port[dev]);
215 mpu_port[dev] = pci_resource_start(pci, 1) + 0x20;
221 pci_write_config_word(pci, PCIR_DSXG_MPU401BASE, mpu_port[dev]);
259 pci_read_config_word(pci, PCIR_DSXG_LEGACY, &old_legacy_ctrl);
260 pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl);
261 pci_write_config_word(pci, PCIR_DSXG_ELEGACY, legacy_ctrl2);
262 err = snd_ymfpci_create(card, pci, old_legacy_ctrl, &chip);
314 pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl);
327 pci_write_config_word(pci, PCIR_DSXG_LEGACY, legacy_ctrl);
343 pci_set_drvdata(pci, card);
352 static void snd_card_ymfpci_remove(struct pci_dev *pci)
354 snd_card_free(pci_get_drvdata(pci));