#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#include <ibm/pci.h>
+#include <minix/ds.h>
#include <timers.h>
static fxp_t fxp_table[FXP_PORT_NR];
-static int fxp_tasknr= ANY;
static u16_t eth_ign_proto;
static tmra_ut fxp_watchdog;
static char *progname;
int main(int argc, char *argv[])
{
message m;
- int i, r, tasknr;
+ int i, r;
+ u32_t tasknr;
fxp_t *fp;
long v;
- if ((fxp_tasknr= getprocnr())<0)
- panic("FXP", "couldn't get proc nr", errno);
-
if (argc < 1)
panic("FXP", "A head which at this time has no name", NO_NUM);
(progname=strrchr(argv[0],'/')) ? progname++ : (progname=argv[0]);
#endif
/* Try to notify inet that we are present (again) */
- r = _pm_findproc("inet", &tasknr);
+ r= ds_retrieve_u32("inet", &tasknr);
if (r == OK)
notify(tasknr);
+ else if (r != ESRCH)
+ printf("fxp: ds_retrieve_u32 failed for 'inet': %d\n", r);
+
while (TRUE)
{
r= sys_irqenable(&fp->fxp_hook);
if (r != OK)
- panic("FXP","unable enable interrupts", r);
+ {
+ panic("FXP",
+ "unable enable interrupts", r);
+ }
if (!fp->fxp_got_int)
continue;