Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c447c456
Commit
c447c456
authored
Nov 30, 2002
by
Matthew Wilcox
Committed by
Jeff Garzik
Nov 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add to linux/pci.h PCI-X, CompactPCI, and PCI Vital Product Data register defines
parent
c9e54010
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
3 deletions
+44
-3
drivers/pci/pci.c
drivers/pci/pci.c
+2
-0
include/linux/pci.h
include/linux/pci.h
+42
-3
No files found.
drivers/pci/pci.c
View file @
c447c456
...
...
@@ -88,6 +88,8 @@ pci_max_busnr(void)
* %PCI_CAP_ID_MSI Message Signalled Interrupts
*
* %PCI_CAP_ID_CHSWP CompactPCI HotSwap
*
* %PCI_CAP_ID_PCIX PCI-X
*/
int
pci_find_capability
(
struct
pci_dev
*
dev
,
int
cap
)
...
...
include/linux/pci.h
View file @
c447c456
...
...
@@ -65,9 +65,9 @@
#define PCI_HEADER_TYPE_CARDBUS 2
#define PCI_BIST 0x0f
/* 8 bits */
#define PCI_BIST_CODE_MASK 0x0f
/* Return result */
#define PCI_BIST_START 0x40
/* 1 to start BIST, 2 secs or less */
#define PCI_BIST_CAPABLE 0x80
/* 1 if BIST capable */
#define
PCI_BIST_CODE_MASK 0x0f
/* Return result */
#define
PCI_BIST_START 0x40
/* 1 to start BIST, 2 secs or less */
#define
PCI_BIST_CAPABLE 0x80
/* 1 if BIST capable */
/*
* Base addresses specify locations in memory or I/O space.
...
...
@@ -195,6 +195,7 @@
#define PCI_CAP_ID_SLOTID 0x04
/* Slot Identification */
#define PCI_CAP_ID_MSI 0x05
/* Message Signalled Interrupts */
#define PCI_CAP_ID_CHSWP 0x06
/* CompactPCI HotSwap */
#define PCI_CAP_ID_PCIX 0x07
/* PCI-X */
#define PCI_CAP_LIST_NEXT 1
/* Next capability in the list */
#define PCI_CAP_FLAGS 2
/* Capability defined flags (16 bits) */
#define PCI_CAP_SIZEOF 4
...
...
@@ -251,6 +252,13 @@
#define PCI_AGP_COMMAND_RATE1 0x0001
/* Use 1x rate */
#define PCI_AGP_SIZEOF 12
/* Vital Product Data */
#define PCI_VPD_ADDR 2
/* Address to access (15 bits!) */
#define PCI_VPD_ADDR_MASK 0x7fff
/* Address mask */
#define PCI_VPD_ADDR_F 0x8000
/* Write 0, 1 indicates completion */
#define PCI_VPD_DATA 4
/* 32-bits of data returned here */
/* Slot Identification */
#define PCI_SID_ESR 2
/* Expansion Slot Register */
...
...
@@ -271,6 +279,37 @@
#define PCI_MSI_DATA_32 8
/* 16 bits of data for 32-bit devices */
#define PCI_MSI_DATA_64 12
/* 16 bits of data for 64-bit devices */
/* CompactPCI Hotswap Register */
#define PCI_CHSWP_CSR 2
/* Control and Status Register */
#define PCI_CHSWP_DHA 0x01
/* Device Hiding Arm */
#define PCI_CHSWP_EIM 0x02
/* ENUM# Signal Mask */
#define PCI_CHSWP_PIE 0x04
/* Pending Insert or Extract */
#define PCI_CHSWP_LOO 0x08
/* LED On / Off */
#define PCI_CHSWP_PI 0x30
/* Programming Interface */
#define PCI_CHSWP_EXT 0x40
/* ENUM# status - extraction */
#define PCI_CHSWP_INS 0x80
/* ENUM# status - insertion */
/* PCI-X registers */
#define PCI_X_CMD 2
/* Modes & Features */
#define PCI_X_CMD_DPERR_E 0x0001
/* Data Parity Error Recovery Enable */
#define PCI_X_CMD_ERO 0x0002
/* Enable Relaxed Ordering */
#define PCI_X_CMD_MAX_READ 0x000c
/* Max Memory Read Byte Count */
#define PCI_X_CMD_MAX_SPLIT 0x0070
/* Max Outstanding Split Transactions */
#define PCI_X_DEVFN 4
/* A copy of devfn. */
#define PCI_X_BUSNR 5
/* Bus segment number */
#define PCI_X_STATUS 6
/* PCI-X capabilities */
#define PCI_X_STATUS_64BIT 0x0001
/* 64-bit device */
#define PCI_X_STATUS_133MHZ 0x0002
/* 133 MHz capable */
#define PCI_X_STATUS_SPL_DISC 0x0004
/* Split Completion Discarded */
#define PCI_X_STATUS_UNX_SPL 0x0008
/* Unexpected Split Completion */
#define PCI_X_STATUS_COMPLEX 0x0010
/* Device Complexity */
#define PCI_X_STATUS_MAX_READ 0x0060
/* Designed Maximum Memory Read Count */
#define PCI_X_STATUS_MAX_SPLIT 0x0380
/* Design Max Outstanding Split Trans */
#define PCI_X_STATUS_MAX_CUM 0x1c00
/* Designed Max Cumulative Read Size */
#define PCI_X_STATUS_SPL_ERR 0x2000
/* Rcvd Split Completion Error Msg */
/* Include the ID list */
#include <linux/pci_ids.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment