legacy_sata: use PCI_command_int_disable from PCI.h

This commit is contained in:
Jérôme Duval 2013-11-30 11:03:50 +01:00
parent e551626f40
commit 0121ba0845

View File

@ -45,8 +45,6 @@
#define ID(v,d) (((v)<< 16) | (d))
/* XXX: To be moved to PCI.h */
#define PCI_command_interrupt 0x400
static const char * const kChannelNames[] = {
"Primary Channel", "Secondary Channel",
@ -153,7 +151,7 @@ controller_probe(device_node *parent)
/* enable PCI interrupt */
pci->write_pci_config(device, PCI_command, 2,
pci->read_pci_config(device, PCI_command, 2) & ~PCI_command_interrupt);
pci->read_pci_config(device, PCI_command, 2) & ~PCI_command_int_disable);
if (vendor_id == PCI_vendor_NVIDIA) {
/* enable control access */