Watt-32 tcp/ip  2.2 dev-rel.10
pcpkt32.c
Go to the documentation of this file.
1 
36 #include <stdio.h>
37 #include <stdlib.h>
38 
39 #include "wattcp.h"
40 
41 #if defined(__MSDOS__) && DOSX
42 
43 #include "pcconfig.h"
44 #include "wdpmi.h"
45 #include "x32vm.h"
46 #include "misc.h"
47 #include "pcsed.h"
48 #include "pcpkt.h"
49 #include "pcpkt32.h"
50 
51 int (*_pkt32_drvr)(IREGS*) = NULL;
52 
53 const struct PM_driver pm_driver_list[] = {
54  { PM_DRVR_3C501, "3c501" },
55  { PM_DRVR_3C503, "3c503" },
56  { PM_DRVR_3C505, "3c505" },
57  { PM_DRVR_3C507, "3c507" },
58  { PM_DRVR_3C5x9, "3c5x9" },
59  { PM_DRVR_3C59x, "3c59x" },
60  { PM_DRVR_NE2000, "NE2000" },
61  { PM_DRVR_EEXPR, "EthExp" },
62  { PM_DRVR_RTL8139, "RTL8139" },
63  { 0, NULL }
64  };
65 
66 int pkt32_drvr_probe (const PM_driver *drivers)
67 {
68  ARGSUSED (drivers);
69  return (-1);
70 }
71 
72 int pkt32_drvr_init (int driver, mac_address *addr)
73 {
74  ARGSUSED (driver);
75  ARGSUSED (addr);
76  return (-1);
77 }
78 
79 const char *pkt32_drvr_name (int driver)
80 {
81  int i;
82  for (i = 0; pm_driver_list[i].type; i++)
83  if (pm_driver_list[i].type == driver)
84  return (pm_driver_list[i].name);
85 
86  return ("unknown");
87 }
88 #endif /* __MSDOS__ && DOSX */
Core definitions.
Definition: misc.h:511