]> mj.ucw.cz Git - pciutils.git/blob - lib/syscalls.c
Released as version 2.1.
[pciutils.git] / lib / syscalls.c
1 /*
2  *      $Id: syscalls.c,v 1.1 1999/01/22 21:05:42 mj Exp $
3  *
4  *      The PCI Library -- Configuration Access via Syscalls
5  *
6  *      Copyright (c) 1997--1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
7  *
8  *      Can be freely distributed and used under the terms of the GNU GPL.
9  */
10
11 #include "internal.h"
12
13 static int
14 sysc_detect(struct pci_access *a)
15 {
16   return 0;
17 }
18
19 static void
20 sysc_init(struct pci_access *a)
21 {
22 }
23
24 static void
25 sysc_cleanup(struct pci_access *a)
26 {
27 }
28
29 static int
30 sysc_read(struct pci_dev *d, int pos, byte *buf, int len)
31 {
32   return 0;
33 }
34
35 static int
36 sysc_write(struct pci_dev *d, int pos, byte *buf, int len)
37 {
38   return 0;
39 }
40
41 struct pci_methods pm_syscalls = {
42   "syscalls",
43   NULL,                                 /* config */
44   sysc_detect,
45   sysc_init,
46   sysc_cleanup,
47   pci_generic_scan,
48   pci_generic_fill_info,
49   sysc_read,
50   sysc_write,
51   NULL,                                 /* init_dev */
52   NULL                                  /* cleanup_dev */
53 };