Fortinet white logo
Fortinet white logo

CLI Reference

diagnose hardware ioport

diagnose hardware ioport

Use this command to display I/O information that might be useful in debugging.

Syntax

diagnose hardware {get|set} ioport {byte|word|long} <address_hex>

ioport

Specify whether to read byte, word, or long from the port.

address_hex

The hexadecimal address of the I/O port.

Example

First, use the diagnose hardware sysinfo command to find the address hex number for the port you want to diagnose:

FortiADC-VM # diagnose hardware get sysinfo ioports

0000-0cf7 : PCI Bus 0000:00

0000-001f : dma1

0020-0021 : pic1

0040-0043 : timer0

0050-0053 : timer1

0060-0060 : keyboard

0064-0064 : keyboard

0070-0077 : rtc

0080-008f : dma page reg

00a0-00a1 : pic2

00c0-00df : dma2

00f0-00ff : fpu

0170-0177 : 0000:00:07.1

0170-0177 : piix

01f0-01f7 : 0000:00:07.1

01f0-01f7 : piix

02f8-02ff : serial

0376-0376 : 0000:00:07.1

0376-0376 : piix

03c0-03df : vga+

03f6-03f6 : 0000:00:07.1

03f6-03f6 : piix

03f8-03ff : serial

0cf0-0cf1 : pnp 00:00

0cf8-0cff : PCI conf1

0d00-feff : PCI Bus 0000:00

1000-103f : 0000:00:07.3

1000-103f : pnp 00:00

1000-1003 : ACPI PM1a_EVT_BLK

1004-1005 : ACPI PM1a_CNT_BLK

1008-100b : ACPI PM_TMR

100c-100f : ACPI GPE0_BLK

1010-1015 : ACPI CPU throttle

1040-104f : 0000:00:07.3

1040-104f : pnp 00:00

1060-107f : pnp 00:0b

1080-10bf : 0000:00:07.7

10c0-10cf : 0000:00:07.1

10c0-10cf : piix

10d0-10df : 0000:00:0f.0

1400-14ff : 0000:00:10.0

2000-3fff : PCI Bus 0000:02

4000-4fff : PCI Bus 0000:03

4000-400f : 0000:03:00.0

5000-5fff : PCI Bus 0000:0b

5000-500f : 0000:0b:00.0

6000-6fff : PCI Bus 0000:13

6000-600f : 0000:13:00.0

7000-7fff : PCI Bus 0000:1b

7000-700f : 0000:1b:00.0

8000-8fff : PCI Bus 0000:04

8000-800f : 0000:04:00.0

9000-9fff : PCI Bus 0000:0c

9000-900f : 0000:0c:00.0

a000-afff : PCI Bus 0000:14

a000-a00f : 0000:14:00.0

b000-bfff : PCI Bus 0000:1c

b000-b00f : 0000:1c:00.0

c000-cfff : PCI Bus 0000:05

c000-c00f : 0000:05:00.0

d000-dfff : PCI Bus 0000:0d

d000-d00f : 0000:0d:00.0

e000-efff : PCI Bus 0000:15

Then, use the diagnose hardware ioport command to display the ioport value:

FortiADC-VM # diagnose hardware get ioport long 001f

inl(001f)=ffffffff

diagnose hardware ioport

diagnose hardware ioport

Use this command to display I/O information that might be useful in debugging.

Syntax

diagnose hardware {get|set} ioport {byte|word|long} <address_hex>

ioport

Specify whether to read byte, word, or long from the port.

address_hex

The hexadecimal address of the I/O port.

Example

First, use the diagnose hardware sysinfo command to find the address hex number for the port you want to diagnose:

FortiADC-VM # diagnose hardware get sysinfo ioports

0000-0cf7 : PCI Bus 0000:00

0000-001f : dma1

0020-0021 : pic1

0040-0043 : timer0

0050-0053 : timer1

0060-0060 : keyboard

0064-0064 : keyboard

0070-0077 : rtc

0080-008f : dma page reg

00a0-00a1 : pic2

00c0-00df : dma2

00f0-00ff : fpu

0170-0177 : 0000:00:07.1

0170-0177 : piix

01f0-01f7 : 0000:00:07.1

01f0-01f7 : piix

02f8-02ff : serial

0376-0376 : 0000:00:07.1

0376-0376 : piix

03c0-03df : vga+

03f6-03f6 : 0000:00:07.1

03f6-03f6 : piix

03f8-03ff : serial

0cf0-0cf1 : pnp 00:00

0cf8-0cff : PCI conf1

0d00-feff : PCI Bus 0000:00

1000-103f : 0000:00:07.3

1000-103f : pnp 00:00

1000-1003 : ACPI PM1a_EVT_BLK

1004-1005 : ACPI PM1a_CNT_BLK

1008-100b : ACPI PM_TMR

100c-100f : ACPI GPE0_BLK

1010-1015 : ACPI CPU throttle

1040-104f : 0000:00:07.3

1040-104f : pnp 00:00

1060-107f : pnp 00:0b

1080-10bf : 0000:00:07.7

10c0-10cf : 0000:00:07.1

10c0-10cf : piix

10d0-10df : 0000:00:0f.0

1400-14ff : 0000:00:10.0

2000-3fff : PCI Bus 0000:02

4000-4fff : PCI Bus 0000:03

4000-400f : 0000:03:00.0

5000-5fff : PCI Bus 0000:0b

5000-500f : 0000:0b:00.0

6000-6fff : PCI Bus 0000:13

6000-600f : 0000:13:00.0

7000-7fff : PCI Bus 0000:1b

7000-700f : 0000:1b:00.0

8000-8fff : PCI Bus 0000:04

8000-800f : 0000:04:00.0

9000-9fff : PCI Bus 0000:0c

9000-900f : 0000:0c:00.0

a000-afff : PCI Bus 0000:14

a000-a00f : 0000:14:00.0

b000-bfff : PCI Bus 0000:1c

b000-b00f : 0000:1c:00.0

c000-cfff : PCI Bus 0000:05

c000-c00f : 0000:05:00.0

d000-dfff : PCI Bus 0000:0d

d000-d00f : 0000:0d:00.0

e000-efff : PCI Bus 0000:15

Then, use the diagnose hardware ioport command to display the ioport value:

FortiADC-VM # diagnose hardware get ioport long 001f

inl(001f)=ffffffff