Rainer,
Sorry to tell you that the pc_order.h was missed when I posted the pcan
source code to opensolaris.
Here are the diffs between the pc_order.h and that in pcwl tarball:
/105,125d104
< #define REG_READ(handle, base, offset, val) { \
< uint16_t t = ddi_get16(handle, (uint16_t *)(base+offset)); \
< val = LE2HOST16_NUM(t); \
< }
<
< #define REG_READ_P(handle, base, offset, val_p, host_order) { \
< uint16_t t = ddi_get16(handle, (uint16_t *)(base+offset)); \
< *val_p = host_order ? LE2HOST16_NUM(t) : t; \
< }
<
< #define REG_WRITE(handle, base, offset, val) { \
< uint16_t t = val; \
< ddi_put16(handle, (uint16_t *)(base+offset), HOST2LE16_NUM(t)); \
< }
<
< #define REG_WRITE_P(handle, base, offset, val_p, host_order) {\
< uint16_t t = *val_p; \
< ddi_put16(handle, (uint16_t *)(base+offset), host_order ? \
< HOST2LE16_NUM(t) : t); \
< }
</
you can add them to the pc_order.h in your hands temporarily and I will
add the pc_order.h
the next time I release new verion of pcwl or pcan.(at that time the
pc_order.h files in the two tarballs are the same.)
Sorry for the inconvenience caused.
-Brian
Rainer Orth ???:
>Brian,
>
>
>
>>Cardbus, pcwl and pcan drivers all support SPARC, and they were all
>>tested before
>>they are posted on opensolaris. Since the binary package in the tarball
>>only includes
>>x86 version, so you need separately make the sparc version by yourself
>>based the provided
>>source code.
>>
>>
>
>That's what I tried with the sources provided.
>
>
>
>>The *.[ch] files in the source tarball are not subject to the build
>>changes, while those Makefiles
>>in the tarball will conflict to those in the workspace if the builds
>>mismatch. so you should be patient
>>to manually cope with those Makefiles mismatch. If you just want to get
>>the driver binary, you can
>>simply write a new Makefile and build the souce code without any
>>dependence on the build and workspace.
>>
>>
>
>I managed that already, but would like to suggest that it would be much
>easier if you provided diffs in addition to or instead of the modified
>files (like Makefile.* etc.) to simplify this for people like me who try to
>build from source.
>
>
>
>>For ath driver, I guess no SPARC version is available now.
>>
>>
>
>True: I've just opened CR 6409272 to have that changed. With the SPARC
>HAL, it already built for me; I only need to find some time to actually try
>it :-) What amount of testing would be required to sponsor integration of
>the SPARC version into O/N? Caspar already indicated that he would do so
>in the name of feature parity between sparc and x86.
>
>
>
>>Rainer Orth ?????????:
>>
>>
>>
>>>+ /opt/onstudio10/SUNWspro/bin/cc -xarch=amd64 -Ui386 -U__i386 -xO3
>>>../../intel/amd64/ml/amd64.il -D_ASM_INLINES -Xa -xspace -Wu,-xmodel=kernel
>>>-Wu,-save_args -v -xildoff -g -xc99=%none -W0,-noglobal -errtags=yes
>>>-errwarn=%all -xc99=%none -v -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL
>>>-D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -DDEBUG -D_SIMULATOR_SUPPORT
>>>-DC2_AUDIT -I../../intel -I../../common/pcmcia -I../../i86pc -Y
>>>I,../../common -c -o debug64/pcan.o ../../common/io/pcmcia/pcan.c
>>>"../../common/io/pcmcia/pcan.c", line 408: warning: implicitly declaring
>>>function to return int: REG_WRITE() (E_IMPLICIT_DECL_FUNC_RETURN_INT)
>>>"../../common/io/pcmcia/pcan.c", line 1304: warning: implicitly declaring
>>>function to return int: REG_READ() (E_IMPLICIT_DECL_FUNC_RETURN_INT)
>>>"../../common/io/pcmcia/pcan.c", line 1916: warning: implicitly declaring
>>>function to return int: REG_READ_P() (E_IMPLICIT_DECL_FUNC_RETURN_INT)
>>>"../../common/io/pcmcia/pcan.c", line 1978: warning: implicitly declaring
>>>function to return int: REG_WRITE_P() (E_IMPLICIT_DECL_FUNC_RETURN_INT)
>>>cc: acomp failed for ../../common/io/pcmcia/pcan.c
>>>*** Error code 2
>>>dmake: Warning: Command failed for target `debug64/pcan.o'
>>>
>>> I've found no definition of those four macros at all.
>>>
>>>
>>>
>>>
>>those macros are defined in pcan.h and pc_order.h within the source tarball.
>>
>>
>
>Unfortunately, this is not the case: I've just downloaded
>
>http://www.opensolaris.org/os/community/laptop/downloads/pcan-0.1-src.tar.gz
>
>again and there's no definition of those macros in the whole tarball ;-(
>
>Thanks.
> Rainer
>
>-----------------------------------------------------------------------------
>Rainer Orth, Faculty of Technology, Bielefeld University
>_______________________________________________
>laptop-discuss mailing list
>laptop-discuss at opensolaris.org
>
>