Subject: Re: scsi-ethernet again
To: None <ngc@ff.iij4u.or.jp>
From: Mattias Sandstrom <mattias@beauty.se>
List: port-mac68k
Date: 09/18/2002 17:23:41
ngc@ff.iij4u.or.jp wrote:
> - driver for Dayna PORT Ether/Link
> http://www.ff.iij4u.or.jp/~ngc/data/if_dse.c.gz
is this really the only file? are there any other things i have to set
up in the kernel config except adding a "dse* at scsiblahbla" line or
something? i gunzip the file to the sys/dev/scsipi directory, modify the
files.scsipi and kernel config files, run config, make depend and make.
it doesn't work. what am i doing wrong? here's what i get:
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Wno-main -msoft-float -I.
-I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68030
-DFPU_EMULATE -DLKM -DDIAGNOSTIC -DGRF_COMPAT -DMAXUSERS=16 -D_KERNEL
-Dmac68k -c ../../../../dev/scsipi/if_dse.c
../../../../dev/scsipi/if_dse.c:302: `noread' undeclared here (not in a
function)
../../../../dev/scsipi/if_dse.c:302: initializer element for
`dse_cdevsw.d_read' is not constant
../../../../dev/scsipi/if_dse.c:302: `nowrite' undeclared here (not in a
function)
../../../../dev/scsipi/if_dse.c:302: initializer element for
`dse_cdevsw.d_write' is not constant
../../../../dev/scsipi/if_dse.c:303: `nostop' undeclared here (not in a
function)
../../../../dev/scsipi/if_dse.c:303: initializer element for
`dse_cdevsw.d_stop' is not constant
../../../../dev/scsipi/if_dse.c:303: `notty' undeclared here (not in a
function)
../../../../dev/scsipi/if_dse.c:303: initializer element for
`dse_cdevsw.d_tty' is not constant
../../../../dev/scsipi/if_dse.c:303: `nopoll' undeclared here (not in a
function)
../../../../dev/scsipi/if_dse.c:303: initializer element for
`dse_cdevsw.d_poll' is not constant
../../../../dev/scsipi/if_dse.c:303: `nommap' undeclared here (not in a
function)
../../../../dev/scsipi/if_dse.c:303: initializer element for
`dse_cdevsw.d_mmap' is not constant
../../../../dev/scsipi/if_dse.c:306: variable `dse_switch' has
initializer but incomplete type
cc1: warnings being treated as errors
../../../../dev/scsipi/if_dse.c:307: warning: excess elements in struct
initializer after `dse_switch'
../../../../dev/scsipi/if_dse.c:308: warning: excess elements in struct
initializer after `dse_switch'
../../../../dev/scsipi/if_dse.c:309: warning: excess elements in struct
initializer after `dse_switch'
../../../../dev/scsipi/if_dse.c:310: warning: excess elements in struct
initializer after `dse_switch'
../../../../dev/scsipi/if_dse.c: In function `dsematch':
../../../../dev/scsipi/if_dse.c:376: structure has no member named
`sa_periph'
../../../../dev/scsipi/if_dse.c:383: dereferencing pointer to incomplete
type
../../../../dev/scsipi/if_dse.c: In function `dseattach':
../../../../dev/scsipi/if_dse.c:407: structure has no member named
`sa_periph'
../../../../dev/scsipi/if_dse.c:425: dereferencing pointer to incomplete
type
../../../../dev/scsipi/if_dse.c:426: dereferencing pointer to incomplete
type
../../../../dev/scsipi/if_dse.c:462: warning: implicit declaration of
function `IFQ_SET_READY'
../../../../dev/scsipi/if_dse.c: In function `dse_scsipi_cmd':
../../../../dev/scsipi/if_dse.c:501: warning: passing arg 1 of
`scsipi_command' from incompatible pointer type
../../../../dev/scsipi/if_dse.c: In function `dsestart':
../../../../dev/scsipi/if_dse.c:512: dereferencing pointer to incomplete
type
../../../../dev/scsipi/if_dse.c: In function `dse_ifstart':
../../../../dev/scsipi/if_dse.c:578: warning: implicit declaration of
function `IFQ_DEQUEUE'
../../../../dev/scsipi/if_dse.c: In function `dsedone':
../../../../dev/scsipi/if_dse.c:661: structure has no member named
`xs_periph'
../../../../dev/scsipi/if_dse.c:715: warning: implicit declaration of
function `IFQ_IS_EMPTY'
../../../../dev/scsipi/if_dse.c: In function `dseopen':
../../../../dev/scsipi/if_dse.c:1323: dereferencing pointer to
incomplete type
../../../../dev/scsipi/if_dse.c:1325: warning: passing arg 1 of
`scsipi_adapter_addref' from incompatible pointer type
../../../../dev/scsipi/if_dse.c:1332: dereferencing pointer to
incomplete type
../../../../dev/scsipi/if_dse.c:1332: `PERIPH_OPEN' undeclared (first
use in this function)
../../../../dev/scsipi/if_dse.c:1332: (Each undeclared identifier is
reported only once
../../../../dev/scsipi/if_dse.c:1332: for each function it appears in.)
../../../../dev/scsipi/if_dse.c: In function `dseclose':
../../../../dev/scsipi/if_dse.c:1356: dereferencing pointer to
incomplete type
../../../../dev/scsipi/if_dse.c:1360: warning: passing arg 1 of
`scsipi_wait_drain' from incompatible pointer type
../../../../dev/scsipi/if_dse.c:1362: warning: passing arg 1 of
`scsipi_adapter_delref' from incompatible pointer type
../../../../dev/scsipi/if_dse.c:1363: dereferencing pointer to
incomplete type
../../../../dev/scsipi/if_dse.c:1363: `PERIPH_OPEN' undeclared (first
use in this function)
../../../../dev/scsipi/if_dse.c: In function `dseioctl':
../../../../dev/scsipi/if_dse.c:1385: warning: passing arg 1 of
`scsipi_do_ioctl' from incompatible pointer type
*** Error code 1
Stop.
any ideas? thanks.
/matt