mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 09:25:17 +00:00
HV: change serial PCI cfg to bus:dev.func format
before PCI_BDF uses its hex value like "0xC2" for "0:18.2" to configure, now use "0:18.2" directly to make it more readable and easier to configure. Tracked-On: #2031 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -159,14 +159,12 @@ choice
|
||||
If this is not selected, the serial port is disabled. This is the
|
||||
default.
|
||||
|
||||
|
||||
config SERIAL_PCI
|
||||
bool "PCI"
|
||||
help
|
||||
Select this if the serial port shall be accessed via PCI memory-mapped
|
||||
registers.
|
||||
|
||||
|
||||
config SERIAL_LEGACY
|
||||
bool "Legacy"
|
||||
help
|
||||
@@ -175,16 +173,13 @@ config SERIAL_LEGACY
|
||||
|
||||
endchoice
|
||||
|
||||
|
||||
config SERIAL_PCI_BDF
|
||||
hex "BDF value of serial PCI device"
|
||||
string "BDF of serial PCI device"
|
||||
depends on SERIAL_PCI
|
||||
default 0x00C2
|
||||
default "0:18.2"
|
||||
help
|
||||
A 16-bit integer encoding bus, device and function of the serial PCI device.
|
||||
This integer consists of 8-bit bus ID, 5-bit device ID and 3-bit function ID.
|
||||
As an example,for PCI device 00:18.2, this BDF would be (0 << 8) | (0x18 << 3)
|
||||
| (2 << 0), it's 0x00C2.
|
||||
BDF: bus, device and function of the serial PCI device; for an example,
|
||||
PCI device ttyS2: 0:18.2.
|
||||
|
||||
config SERIAL_PIO_BASE
|
||||
hex "Base address of serial PIO region"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
|
||||
CONFIG_BOARD="UP2"
|
||||
CONFIG_SERIAL_PCI=y
|
||||
CONFIG_SERIAL_PCI_BDF=0x00C1
|
||||
CONFIG_SERIAL_PCI_BDF="0:18.1"
|
||||
CONFIG_COM_IRQ=6
|
||||
|
Reference in New Issue
Block a user