Hello,
I am trying to add a new PCI product ID (0xc158) for a serial interface
interface card to /usr/src/sys/dev/pci/pcidevs.
For some reason e.g.: an omission or error due to something I should
[not] have done; make will not execute as shown below with other
relevant information.
I would appreciate some guidance and input from anyone who can identify
my omission or error.
A dmesg is not included to keep this short, but I am able to provide one
if it is required to identify the reason that make fails.
$ sysctl kern.version
kern.version=OpenBSD 7.0-current (GENERIC.MP) #298: Mon Jan 31 13:42:43 MST 2022
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
$ pwd
/usr/src/sys/dev/pci
$ cat Makefile
# $OpenBSD: Makefile,v 1.4 1996/10/14 09:01:34 deraadt Exp $
# $NetBSD: Makefile,v 1.1 1995/06/18 01:07:04 cgd Exp $
AWK= awk
pcidevs.h pcidevs_data.h: pcidevs devlist2h.awk
/bin/rm -f pcidevs.h pcidevs_data.h
${AWK} -f devlist2h.awk pcidevs
$ make
/bin/rm -f pcidevs.h pcidevs_data.h
awk -f devlist2h.awk pcidevs
awk: can't open file devlist2h.awk
source line number 1 source file devlist2h.awk
*** Error 2 in /usr/src/sys/dev/pci (Makefile:8 'pcidevs.h')
$ head -n 3 devlist2h.awk
#! /usr/bin/awk -f
# $OpenBSD: devlist2h.awk,v 1.8 2007/02/21 13:17:28 deraadt Exp $
# $NetBSD: devlist2h.awk,v 1.2 1996/01/22 21:08:09 cgd Exp $
$ ls -lao pcidevs* devlist*
-rw-rw-r-- 1 aer wsrc - 5934 Feb 1 16:36 devlist2h.awk
-rw-rw-r-- 1 aer wsrc - 395169 Feb 1 15:32 pcidevs
-rw-rw-r-- 1 aer wsrc - 555583 Jan 27 18:48 pcidevs.h
-rw-rw-r-- 1 aer wsrc - 687283 Jan 27 18:48 pcidevs_data.h
$ fgrep -e wsrc /etc/group
wsrc:*:9:aer
$ fgrep -C -e c158 pcidevs
product OXFORD2 OXPCIE952 0xc110 OXPCIE952 Parallel
product OXFORD2 OXPCIE952S 0xc120 OXPCIE952 Serial
product OXFORD2 OXPCIE952S_1 0xc158 OXPCIE952 Serial
/* Parallels products */
$ dmesg | grep -e Oxford
vendor "Oxford", unknown product 0xc158 (class communications subclass
serial, rev 0x00) at pci4 dev 0 function 0 not configured
As root:
# cd /var/log
# fgrep -R -e devlist2h.awk -e make *
# cd
# pcidump -v 4:0:0
4:0:0: Oxford unknown
0x0000: Vendor ID: 1415, Product ID: c158
0x0004: Command: 0000, Status: 0010
0x0008: Class: 07 Communications, Subclass: 00 Serial,
Interface: 02, Revision: 00
0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
Cache Line Size: 10
0x0010: BAR mem 32bit addr: 0xfc800000/0x00004000
0x0014: BAR mem 32bit addr: 0xfc600000/0x00200000
0x0018: BAR mem 32bit addr: 0xfc400000/0x00200000
0x001c: BAR empty (00000000)
0x0020: BAR empty (00000000)
0x0024: BAR empty (00000000)
0x0028: Cardbus CIS: 00000000
0x002c: Subsystem Vendor ID: 1415 Product ID: c158
0x0030: Expansion ROM Base Address: 00000000
0x0038: 00000000
0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00
0x0040: Capability 0x01: Power Management
State: D0
0x0070: Capability 0x10: PCI Express
Max Payload Size: 128 / 128 bytes
Max Read Request Size: 512 bytes
Link Speed: 2.5 / 2.5 GT/s
Link Width: x1 / x1
0x0100: Enhanced Capability 0x03: Device Serial Number
Serial Number: 0030e01111000150
0x0110: Enhanced Capability 0x04: Power Budgeting
0x00b0: Capability 0x11: Extended Message Signalled Interrupts (MSI-X)
Enabled: no; table size 16 (BAR 1:1781760)
Regards,
Avon
--
aer
Online Casino Site | LuckyClub.live
ReplyDeleteLuckyClub is a UK Licensed luckyclub.live Online Casino with Great Live Casino. We've created a great experience with over 400 exciting ways to play. Sign up today.