mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 10:26:39 +07:00
cad5cef62a
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 lines
845 B
C
30 lines
845 B
C
#include <asm/i8259.h>
|
|
#include <linux/pci.h>
|
|
#include "44x.h"
|
|
|
|
/**
|
|
* ml510_ail_quirk
|
|
*/
|
|
static void ml510_ali_quirk(struct pci_dev *dev)
|
|
{
|
|
/* Enable the IDE controller */
|
|
pci_write_config_byte(dev, 0x58, 0x4c);
|
|
/* Assign irq 14 to the primary ide channel */
|
|
pci_write_config_byte(dev, 0x44, 0x0d);
|
|
/* Assign irq 15 to the secondary ide channel */
|
|
pci_write_config_byte(dev, 0x75, 0x0f);
|
|
/* Set the ide controller in native mode */
|
|
pci_write_config_byte(dev, 0x09, 0xff);
|
|
|
|
/* INTB = disabled, INTA = disabled */
|
|
pci_write_config_byte(dev, 0x48, 0x00);
|
|
/* INTD = disabled, INTC = disabled */
|
|
pci_write_config_byte(dev, 0x4a, 0x00);
|
|
/* Audio = INT7, Modem = disabled. */
|
|
pci_write_config_byte(dev, 0x4b, 0x60);
|
|
/* USB = INT7 */
|
|
pci_write_config_byte(dev, 0x74, 0x06);
|
|
}
|
|
DECLARE_PCI_FIXUP_EARLY(0x10b9, 0x1533, ml510_ali_quirk);
|
|
|