Date: Thu, 02 Mar 2000 14:16:13 +0400 From: Vladimir Kravchuk <adm@smr.ru> Cc: Doug Rabson <dfr@nlsystems.com>, freebsd-alpha@FreeBSD.ORG, Andrew Gallatin <gallatin@cs.duke.edu> Subject: About pci_if.h Message-ID: <38BE3F6D.1F8A78D1@smr.ru> References: <Pine.BSF.4.21.0002280951170.8714-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I would like to install GM Myrinet software but I can not to compile the empty program on FreeBSD4.0-20000214-CURRENT(Alpha and Intell) if I include "pci_if.h" =============================================================== Command line is: =============================================================== gcc -c -I./ -Wa,-mev56 -I/usr/src/sys /usr/prog/test1/gm_arch.c =============================================================== gm_arch.c: =============================================================== #include "gm_arch_types.h" static void gm_stop_dma(device_t dev) { } =============================================================== gm_arch_types.h =============================================================== /* * FreeBSD driver defines */ #include <sys/param.h> #include <sys/systm.h> #include <sys/conf.h> #include <sys/uio.h> #include <sys/kernel.h> #include <sys/signalvar.h> #include <sys/mman.h> #include <sys/vmmeter.h> #include <sys/bus.h> #include <machine/bus.h> #include <sys/rman.h> #include <machine/resource.h> #include <vm/vm.h> #include <vm/vm_kern.h> #include <vm/pmap.h> #include <vm/vm_extern.h> #include <machine/clock.h> /* for DELAY */ #include <pci/pcivar.h> #include <pci/pcireg.h> #include <sys/sysctl.h> ======================================================================= pci_if.h: ======================================================================= /* * This file is produced automatically. * Do not modify anything in here by hand. * * Created from source file * /sys/pci/pci_if.m * with * /sys/kern/makedevops.pl * * See the source file for legal information */ #ifndef _pci_if_h_ #define _pci_if_h_ extern struct device_op_desc pci_read_config_desc; typedef u_int32_t pci_read_config_t(device_t dev, device_t child, int reg, int width); pci_read_config_t PCI_READ_CONFIG; extern struct device_op_desc pci_write_config_desc; typedef void pci_write_config_t(device_t dev, device_t child, int reg, u_int32_t val, int width); pci_write_config_t PCI_WRITE_CONFIG; #endif /* _pci_if_h_ */ ======================================================================= Results: ======================================================================= In file included from /usr/src/sys/pci/pcivar.h:170, from /usr/prog/test1/gm_arch_types.h:24, from /usr/prog/test1/gm_arch.c:1: pci_if.h:17: syntax error before `dev' pci_if.h:22: syntax error before `dev' In file included from /usr/prog/test1/gm_arch_types.h:24, from /usr/prog/test1/gm_arch.c:1: /usr/src/sys/pci/pcivar.h:217: syntax error before `dev' /usr/src/sys/pci/pcivar.h: In function `pci_get_subvendor': /usr/src/sys/pci/pcivar.h:217: `dev' undeclared (first use in this function) /usr/src/sys/pci/pcivar.h:217: (Each undeclared identifier is reported only once /usr/src/sys/pci/pcivar.h:217: for each function it appears in.) /usr/src/sys/pci/pcivar.h: At top level: /usr/src/sys/pci/pcivar.h:217: syntax error before `dev' /usr/src/sys/pci/pcivar.h: In function `pci_set_subvendor': /usr/src/sys/pci/pcivar.h:217: `t' undeclared (first use in this function) /usr/src/sys/pci/pcivar.h:217: `dev' undeclared (first use in this function) /usr/src/sys/pci/pcivar.h: At top level: /usr/src/sys/pci/pcivar.h:218: syntax error before `dev' /usr/src/sys/pci/pcivar.h: In function `pci_get_subdevice': /usr/src/sys/pci/pcivar.h:218: `dev' undeclared (first use in this function) /usr/src/sys/pci/pcivar.h: At top level: /usr/src/sys/pci/pcivar.h:218: syntax error before `dev' /usr/src/sys/pci/pcivar.h: In function `pci_set_subdevice': /usr/src/sys/pci/pcivar.h:218: `t' undeclared (first use in this function) /usr/src/sys/pci/pcivar.h:218: `dev' undeclared (first use in this function) /usr/src/sys/pci/pcivar.h: At top level: . . ============================================================================ -- Vladimir Kravchuk. e-mail:adm@smr.ru Phone:+7(8462)322-763 Fax:+7(8462)322-763 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38BE3F6D.1F8A78D1>