Kernel cdevsw.size

1999-09-30 Thread Simon Shapiro as Himself
Hi Y'll The function pointer (entry point, etc.) that indicates a device size is defined in sys/conf.h as: typedef int d_psize_t __P((dev_t dev)); The problem I have is that i2o devices express size as 64bit unsigned value (this is in bytes). This means that a device with more than 2billion

Apology

1999-09-29 Thread Simon Shapiro as Himself
I sincerely apologize to all the super patient people who depended on me for the delivery of an i2o subsystem and a DPT Generation V support with it. People, I stood you up and I am sorry for it. Excuse: I have been rather sick and my hands full with other health issues in my family.

SYSINIT question

1999-09-29 Thread Simon Shapiro as Himself
Hi Y'll Am noticing that adding: SYSINIT(i2o_dev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR, i2o_drvinit, NULL) to one's driver causes the init routine (i2o_drvinit to run very early, as in: real memory = 402653184 (393216K bytes) avail memory = 388120576 (379024K bytes) Preloaded elf

Kernel Printf and unsigned long long

1999-09-29 Thread Simon Shapiro as Himself
Well, assume u_int64_t foo = ~0; printf("Foo is equal %qx\n", produces Foo is equal %qx And printf("Foo is equal %x\n"); produces: ../../i2o/i2o_drv.c:1260: warning: unsigned int format, different type arg (arg 4) You are damned if you do and damned if you don't :-) What is the

Re: SYSINIT question

1999-09-29 Thread Simon Shapiro as Himself
Simon Shapiro as Himself wrote: RTFM. sys/kernel.h Sorry! Hi Y'll Am noticing that adding: SYSINIT(i2o_dev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE+CDEV_MAJOR, i2o_drvinit, NULL) to one's driver causes the init routine (i2o_drvinit to run very early, as in: real memory = 402653184

Re: de0 strangenesses

1999-09-29 Thread Simon Shapiro as Himself
Rene de Vries wrote: I think i've got a similar problem. This involves a DE500 (de0 driver) ethernet card and a 100 Mbit UTP. The problem was that somehow the driver didn't detect the 100Mbit and always switched to 10Mbit. The workaround that I use is a simple script "/etc/start_if.de0"