Difference between revisions of "Unit PCI"
From Ultibo.org
Line 10: | Line 10: | ||
---- | ---- | ||
− | '' | + | |
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI device, driver and host specific constants''' <code> PCI_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCI_DEVICE_PREFIX = 'PCI';</code> | ||
+ | | style="width: 50%;"|Name prefix for PCI Devices | ||
+ | |- | ||
+ | | <code>PCI_DRIVER_PREFIX = 'PCI';</code> | ||
+ | | Name prefix for PCI Drivers | ||
+ | |- | ||
+ | | <code>PCI_HOST_PREFIX = 'PCIHost';</code> | ||
+ | | Name prefix for PCI Hosts | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI device type''' <code> PCI_TYPE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCI_TYPE_NONE = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PCI_TYPE_MAX = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PCI_TYPE_NAMES:array[PCI_TYPE_NONE..PCI_TYPE_MAX] of String = ('PCI_TYPE_NONE');</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI device flag''' <code> PCI_FLAG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCI_FLAG_NONE = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI host type''' <code> PCIHOST_TYPE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCIHOST_TYPE_NONE = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PCIHOST_TYPE_MAX = 0;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PCIHOST_TYPE_NAMES:array[PCIHOST_TYPE_NONE..PCIHOST_TYPE_MAX] of String = ('PCIHOST_TYPE_NONE');</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI host state''' <code> PCIHOST_STATE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCIHOST_STATE_DISABLED = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>PCIHOST_STATE_ENABLED = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PCIHOST_STATE_MAX = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | |colspan="2"| | ||
+ | |- | ||
+ | | <code>PCIHOST_STATE_NAMES:array[PCIHOST_STATE_DISABLED..PCIHOST_STATE_MAX] of String = ('PCIHOST_STATE_DISABLED','PCIHOST_STATE_ENABLED');</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI host flag''' <code> PCIHOST_FLAG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCIHOST_FLAG_NONE = $00000000;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>PCIHOST_FLAG_SHARED = $00000001;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>PCIHOST_FLAG_NOCACHE = $00000002;</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI status code''' <code> PCI_STATUS_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCI_STATUS_SUCCESS = 0;</code> | ||
+ | | style="width: 50%;"|Function successful | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''PCI logging''' <code> PCI_LOG_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>PCI_LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG;</code> | ||
+ | | style="width: 50%;"|PCI debugging messages | ||
+ | |- | ||
+ | | <code>PCI_LOG_LEVEL_INFO = LOG_LEVEL_INFO;</code> | ||
+ | | PCI informational messages, such as a device being attached or detached. | ||
+ | |- | ||
+ | | <code>PCI_LOG_LEVEL_WARN = LOG_LEVEL_WARN;</code> | ||
+ | | PCI warning messages | ||
+ | |- | ||
+ | | <code>PCI_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;</code> | ||
+ | | PCI error messages | ||
+ | |- | ||
+ | | <code>PCI_LOG_LEVEL_NONE = LOG_LEVEL_NONE;</code> | ||
+ | | No PCI messages | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Type definitions === | === Type definitions === |
Revision as of 05:50, 19 June 2021
Return to Unit Reference
Description
Ultibo PCI/PCIe interface unit
Constants
PCI device, driver and host specific constants
PCI_*
PCI_DEVICE_PREFIX = 'PCI';
|
Name prefix for PCI Devices |
PCI_DRIVER_PREFIX = 'PCI';
|
Name prefix for PCI Drivers |
PCI_HOST_PREFIX = 'PCIHost';
|
Name prefix for PCI Hosts |
PCI device type
PCI_TYPE_*
PCI_TYPE_NONE = 0;
|
|
PCI_TYPE_MAX = 0;
|
|
PCI_TYPE_NAMES:array[PCI_TYPE_NONE..PCI_TYPE_MAX] of String = ('PCI_TYPE_NONE');
|
PCI device flag
PCI_FLAG_*
PCI_FLAG_NONE = $00000000;
|
PCI host type
PCIHOST_TYPE_*
PCIHOST_TYPE_NONE = 0;
|
|
PCIHOST_TYPE_MAX = 0;
|
|
PCIHOST_TYPE_NAMES:array[PCIHOST_TYPE_NONE..PCIHOST_TYPE_MAX] of String = ('PCIHOST_TYPE_NONE');
|
PCI host state
PCIHOST_STATE_*
PCIHOST_STATE_DISABLED = 0;
|
|
PCIHOST_STATE_ENABLED = 1;
|
|
PCIHOST_STATE_MAX = 1;
|
|
PCIHOST_STATE_NAMES:array[PCIHOST_STATE_DISABLED..PCIHOST_STATE_MAX] of String = ('PCIHOST_STATE_DISABLED','PCIHOST_STATE_ENABLED');
|
PCI host flag
PCIHOST_FLAG_*
PCIHOST_FLAG_NONE = $00000000;
|
|
PCIHOST_FLAG_SHARED = $00000001;
|
|
PCIHOST_FLAG_NOCACHE = $00000002;
|
PCI status code
PCI_STATUS_*
PCI_STATUS_SUCCESS = 0;
|
Function successful |
PCI logging
PCI_LOG_*
PCI_LOG_LEVEL_DEBUG = LOG_LEVEL_DEBUG;
|
PCI debugging messages |
PCI_LOG_LEVEL_INFO = LOG_LEVEL_INFO;
|
PCI informational messages, such as a device being attached or detached. |
PCI_LOG_LEVEL_WARN = LOG_LEVEL_WARN;
|
PCI warning messages |
PCI_LOG_LEVEL_ERROR = LOG_LEVEL_ERROR;
|
PCI error messages |
PCI_LOG_LEVEL_NONE = LOG_LEVEL_NONE;
|
No PCI messages |
Type definitions
To be documented
Public variables
PCI logging
PCI_DEFAULT_LOG_LEVEL:LongWord = PCI_LOG_LEVEL_DEBUG;
|
Minimum level for PCI messages. Only messages with level greater than or equal to this will be printed. |
PCI_LOG_ENABLED:Boolean;
|
Function declarations
To be documented
Return to Unit Reference