|
28 | 28 | # include <stdint.h> |
29 | 29 | # include <string.h> |
30 | 30 | # include <stdlib.h> |
31 | | -# ifdef MSDOS |
| 31 | +# if defined(__DOS__) || defined(__PMODEW__) |
32 | 32 | # include <dos.h> |
33 | 33 | # include <i86.h> |
34 | 34 | # endif |
@@ -101,7 +101,7 @@ static const char *bridge_flags[] = { |
101 | 101 | }; |
102 | 102 |
|
103 | 103 | static int term_width; |
104 | | -#if defined(MSDOS) |
| 104 | +#if defined(__DOS__) || defined(__PMODEW__) |
105 | 105 | static union REGS regs; |
106 | 106 | static struct SREGS seg_regs; |
107 | 107 | # pragma pack(push, 1) |
@@ -151,7 +151,7 @@ static struct PACKED { |
151 | 151 | } *pciids_progif = NULL; |
152 | 152 | static char *pciids_string = NULL; |
153 | 153 |
|
154 | | -#if defined(MSDOS) |
| 154 | +#if defined(__DOS__) || defined(__PMODEW__) |
155 | 155 | typedef struct { |
156 | 156 | uint8_t bus, dev; |
157 | 157 | struct { |
@@ -1083,7 +1083,7 @@ dump_info(uint8_t bus, uint8_t dev, uint8_t func) |
1083 | 1083 | return 0; |
1084 | 1084 | } |
1085 | 1085 |
|
1086 | | -#if defined(MSDOS) |
| 1086 | +#if defined(__DOS__) || defined(__PMODEW__) |
1087 | 1087 | static int |
1088 | 1088 | comp_irq_routing_entry(const void *elem1, const void *elem2) |
1089 | 1089 | { |
@@ -1564,7 +1564,7 @@ main(int argc, char **argv) |
1564 | 1564 | usage: |
1565 | 1565 | printf("%s -s [-d]\n", ch); |
1566 | 1566 | printf("∟ Display all devices on the PCI bus. Specify -d to dump registers as well.\n"); |
1567 | | -#if defined(MSDOS) |
| 1567 | +#if defined(__DOS__) || defined(__PMODEW__) |
1568 | 1568 | printf("\n"); |
1569 | 1569 | printf("%s -t [-m] [-8]\n", ch); |
1570 | 1570 | printf("∟ Display BIOS IRQ steering table. Specify -m to look for a Microsoft $PIR\n"); |
@@ -1615,7 +1615,7 @@ main(int argc, char **argv) |
1615 | 1615 | else |
1616 | 1616 | return scan_buses('\0'); |
1617 | 1617 | } |
1618 | | -#if defined(MSDOS) |
| 1618 | +#if defined(__DOS__) || defined(__PMODEW__) |
1619 | 1619 | else if (argv[1][1] == 't') { |
1620 | 1620 | /* Steering table display asks for optional parameters. */ |
1621 | 1621 | reg = 0; |
|
0 commit comments