u16 cmd; pci_read_config_word(dev, PCI_COMMAND, &cmd); cmd |= PCI_COMMAND_INTX_DISABLE; pci_write_config_word(dev, PCI_COMMAND, cmd); 
pci_intx(dev, 0);  /* disable intx */ 
static void enable_msi_mode(struct pci_dev *dev, int pos, int type){	u16 control;	pci_read_config_word(dev, msi_control_reg(pos), &control);	if (type == PCI_CAP_ID_MSI) {		/* Set enabled bits to single MSI & enable MSI_enable bit */		msi_enable(control, 1);		pci_write_config_word(dev, msi_control_reg(pos), control);	} else {		msix_enable(control);		pci_write_config_word(dev, msi_control_reg(pos), control);	}    	if (pci_find_capability(dev, PCI_CAP_ID_EXP)) {		/* PCI Express Endpoint device detected */		u16 cmd;		pci_read_config_word(dev, PCI_COMMAND, &cmd);		cmd |= PCI_COMMAND_INTX_DISABLE;		pci_write_config_word(dev, PCI_COMMAND, cmd);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a04ce0ffcaf561994ecf382cd3caad75556dc499/msi.c/clean/drivers/pci/msi.c