xref: /netbsd-src/external/bsd/file/dist/magic/magdir/pci_ids (revision a77ebd868432a4d7e595fb7709cfc1b8f144789b)
1*a77ebd86Schristos
2*a77ebd86Schristos#------------------------------------------------------------------------------
3*a77ebd86Schristos# $File: pci_ids,v 1.1 2022/04/02 14:47:42 christos Exp $
4*a77ebd86Schristos# pci.ids:  file(1) magic for PCI specific informations
5*a77ebd86Schristos#
6*a77ebd86Schristos
7*a77ebd86Schristos# Vendor identification (ID)		https://pci-ids.ucw.cz/v2.2/pci.ids
8*a77ebd86Schristos# show hexadecimal PCI vendor identification in human readable text form
9*a77ebd86Schristos0	name	PCI-vendor
10*a77ebd86Schristos#			ID	vendor name
11*a77ebd86Schristos#>0	uleshort	=0x0f00	fOO
12*a77ebd86Schristos>0	uleshort	=0x1000	Broadcom
13*a77ebd86Schristos>0	uleshort	=0x1002	AMD/ATI
14*a77ebd86Schristos>0	uleshort	=0x1013	Cirrus Logic
15*a77ebd86Schristos>0	uleshort	=0x1014	IBM
16*a77ebd86Schristos>0	uleshort	=0x1022	AMD
17*a77ebd86Schristos>0	uleshort	=0x1050	Winbond
18*a77ebd86Schristos>0	uleshort	=0x105a	Promise
19*a77ebd86Schristos>0	uleshort	=0x1095	Silicon
20*a77ebd86Schristos>0	uleshort	=0x10EC	Realtek
21*a77ebd86Schristos>0	uleshort	=0x10de	NVIDIA
22*a77ebd86Schristos>0	uleshort	=0x1106	VIA
23*a77ebd86Schristos# Woodward McCoach, Inc.
24*a77ebd86Schristos>0	uleshort	=0x1231	Woodward
25*a77ebd86Schristos#
26*a77ebd86Schristos>0	uleshort	=0x1234	Bochs
27*a77ebd86Schristos>0	uleshort	=0x15ad	VMware
28*a77ebd86Schristos>0	uleshort	=0x1af4	Virtio
29*a77ebd86Schristos>0	uleshort	=0x1b36	QEMU
30*a77ebd86Schristos>0	uleshort	=0x1de1	Tekram
31*a77ebd86Schristos# maybe also Promise?
32*a77ebd86Schristos#>0	uleshort	=0x4289	Promise
33*a77ebd86Schristos#>0	uleshort	=0x66a1	FOO
34*a77ebd86Schristos>0	uleshort	=0x8086	Intel
35*a77ebd86Schristos>0	uleshort	=0x9004	Adaptec
36*a77ebd86Schristos# also Adaptec; but no example
37*a77ebd86Schristos>0	uleshort	=0x9005	Adaptec
38*a77ebd86Schristos# for unknown/missing manufactors
39*a77ebd86Schristos>0	default		x	UNKNOWN
40*a77ebd86Schristos>>0	uleshort		x	(%#4.4x)
41*a77ebd86Schristos
42*a77ebd86Schristos# https://blog.ladsai.com/pci-configuration-space-class-code.html
43*a77ebd86Schristos# Base class code			https://wiki.osdev.org/PCI
44*a77ebd86Schristos# show hexadecimal PCI class+sub+ProgIF identification in human readable text form
45*a77ebd86Schristos0	name		PCI-class
46*a77ebd86Schristos#>0	ubyte		x	CLASS=%x
47*a77ebd86Schristos>0	ubyte		x
48*a77ebd86Schristos# Device was built prior definition of the class code field
49*a77ebd86Schristos>>0	ubyte		0x00	PRIOR
50*a77ebd86Schristos# Any device except for VGA-Compatible devices like: 2975BIOS.BIN Trm3x5.bin
51*a77ebd86Schristos# BUT also NVidia44.bin vgabios-stdvga-bin.rom
52*a77ebd86Schristos#>>>0	ubyte		0x00		NOT VGA
53*a77ebd86Schristos# VGA-Compatible Device; NO EXAMPLE found here!!
54*a77ebd86Schristos#>>>0	ubyte		0x01		VGA
55*a77ebd86Schristos# like 4243.bin
56*a77ebd86Schristos#>>>0	ubyte		0x04		SUB_CLASS_4
57*a77ebd86Schristos>>0	ubyte		0x01	storage controller
58*a77ebd86Schristos# device sub-type and its definition is dependent upon the base-type code
59*a77ebd86Schristos>>>1	ubyte		0x00		SCSI
60*a77ebd86Schristos>>>1	ubyte		0x01		IDE
61*a77ebd86Schristos>>>1	ubyte		0x02		Floppy
62*a77ebd86Schristos>>>1	ubyte		0x03		IPI
63*a77ebd86Schristos>>>0	ubyte		0x04		RAID
64*a77ebd86Schristos>>>1	ubyte		0x05		ATA
65*a77ebd86Schristos>>>1	ubyte		0x06		SATA
66*a77ebd86Schristos>>>1	ubyte		0x07		SAS
67*a77ebd86Schristos>>>1	ubyte		0x08		NVM
68*a77ebd86Schristos# 4650_sr5.bin "PROMISE" "FT TX4650 Ary X"
69*a77ebd86Schristos>>>1	ubyte		0x80		OTHER
70*a77ebd86Schristos>>0	ubyte		0x02	network controller
71*a77ebd86Schristos>>>1	ubyte		0x00		ethernet
72*a77ebd86Schristos>>>1	ubyte		0x01		token ring
73*a77ebd86Schristos>>>1	ubyte		0x02		FDDI
74*a77ebd86Schristos>>>1	ubyte		0x03		ATM
75*a77ebd86Schristos>>>1	ubyte		0x04		ISDN
76*a77ebd86Schristos>>>1	ubyte		0x05		WorldFip
77*a77ebd86Schristos# PICMG 2.14 Multi Computing
78*a77ebd86Schristos>>>1	ubyte		0x06		PICMG
79*a77ebd86Schristos>>>1	ubyte		0x80		OTHER
80*a77ebd86Schristos>>0	ubyte		0x03	display controller
81*a77ebd86Schristos>>0	ubyte		0x04	multimedia controller
82*a77ebd86Schristos>>0	ubyte		0x05	memory controller
83*a77ebd86Schristos>>0	ubyte		0x06	bridge device
84*a77ebd86Schristos# Simple Communication Controllers
85*a77ebd86Schristos>>0	ubyte		0x07	communication controller
86*a77ebd86Schristos# Base System Peripherals
87*a77ebd86Schristos>>0	ubyte		0x08	base peripheral
88*a77ebd86Schristos# Input Devices
89*a77ebd86Schristos>>0	ubyte		0x09	input device
90*a77ebd86Schristos# Docking Stations
91*a77ebd86Schristos>>0	ubyte		0x0A	docking station
92*a77ebd86Schristos>>0	ubyte		0x0B	processor
93*a77ebd86Schristos>>0	ubyte		0x0C	serial bus controller
94*a77ebd86Schristos>>0	ubyte		0x0D	wireless controller
95*a77ebd86Schristos# Intelligent I/O Controllers
96*a77ebd86Schristos>>0	ubyte		0x0E	I/O controller
97*a77ebd86Schristos# Satellite Communication Controllers
98*a77ebd86Schristos>>0	ubyte		0x0F	satellite controller
99*a77ebd86Schristos# Encryption/Decryption Controllers
100*a77ebd86Schristos>>0	ubyte		0x10	encryption controller
101*a77ebd86Schristos# Data Acquisition and Signal Processing Controllers
102*a77ebd86Schristos>>0	ubyte		0x11	signal controller
103*a77ebd86Schristos# Processing Accelerator
104*a77ebd86Schristos>>0	ubyte		0x12	processing accelerator
105*a77ebd86Schristos# Non-Essential Instrumentation
106*a77ebd86Schristos>>0	ubyte		0x13	non-essential
107*a77ebd86Schristos# reserved or unassigned
108*a77ebd86Schristos>>0	default		x
109*a77ebd86Schristos# device does not fit any defined class; Unassigned Class (Vendor specific)
110*a77ebd86Schristos>>>0		ubyte	0xFF		UNASSIGNED
111*a77ebd86Schristos# THIS SHOULD NOT HAPPEN! BUT CLASS=8f for Promise 4650_sr5.bin 8660_sr5.bin
112*a77ebd86Schristos>>>0		default	x		RESERVED
113*a77ebd86Schristos>>>>0 	ubyte	x		(%#x)
114*a77ebd86Schristos# Prog IF of PCI class code?
115*a77ebd86Schristos# defines the specific device programming interface
116*a77ebd86Schristos>2	ubyte		>0	\b, ProgIF=%u
117