コード例 #1
0
ファイル: i386-ports.c プロジェクト: WiseMan787/ralink_sdk
static int
conf12_setup_io(struct pci_access *a)
{
  if (conf12_io_enabled < 0)
    conf12_io_enabled = intel_setup_io(a);
  return conf12_io_enabled;
}
コード例 #2
0
static void
conf12_init(struct pci_access *a)
{

#ifdef PCI_OS_DOS
  locate_pci_ids(a);
#endif
#ifdef PCI_OS_OS2
  locate_pci_ids(a);
#endif  
  
  if (!intel_setup_io())
    a->error("You need to be root to have access to I/O ports.");
}
コード例 #3
0
ファイル: i386-ports.c プロジェクト: BeatrizMaria/ics-os
static void
conf12_init(struct pci_access *a)
{
  if (!intel_setup_io())
    a->error("You need to be root to have access to I/O ports.");
}