Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Reg - MII Compilation: Page 1 of 9 (9 Items)
   
Reg - MII Compilation  
Hi ,

I Wrote a sample MII interface driver,for that i refered exPhy.c.

After written i tried to compile that file it throws an error.

i got error from system files.

I have included my files also.

please find the below error:
==================


In file included from sam_mii.h:20,
                 from sam_mii.c:7:
/usr/qnx640/target/qnx6/usr/include/sys/device.h:97:23: error: sys/evcnt.h: No such file or directory
/usr/qnx640/target/qnx6/usr/include/sys/device.h:100:23: error: sys/systm.h: No such file or directory
In file included from sam_mii.h:20,
                 from sam_mii.c:7:
/usr/qnx640/target/qnx6/usr/include/sys/device.h:154: error: field 'dv_callback' has incomplete type
In file included from sam_mii.h:24,
                 from sam_mii.c:7:
/usr/qnx640/target/qnx6/usr/include/dev/mii/miivar.h:82: error: field 'mii_media' has incomplete type
/usr/qnx640/target/qnx6/usr/include/dev/mii/miivar.h:137: error: expected specifier-qualifier-list before 'u_int32_t'
/usr/qnx640/target/qnx6/usr/include/dev/mii/miivar.h:204: error: expected specifier-qualifier-list before 'u_int32_t'
sam_mii.c:10: error: 'samPHY' undeclared here (not in a function)
sam_mii.c:10: error: initializer element is not constant
sam_mii.c:10: error: (near initialization for 'samPHY_ca.ca_name')
sam_mii.c:10: error: 'mii_phy_detach' undeclared here (not in a function)
sam_mii.c:10: error: 'mii_phy_activate' undeclared here (not in a function)
sam_mii.c: In function 'samphy_attach':
sam_mii.c:99: error: 'struct mii_softc' has no member named 'mii_inst'
sam_mii.c:100: error: 'struct mii_softc' has no member named 'mii_phy'
sam_mii.c:101: error: 'struct mii_softc' has no member named 'mii_funcs'
sam_mii.c:102: error: 'struct mii_softc' has no member named 'mii_pdata'
sam_mii.c:103: error: 'struct mii_softc' has no member named 'mii_flags'
sam_mii.c:104: error: 'struct mii_softc' has no member named 'mii_anegticks'
sam_mii.c:119: error: 'struct mii_softc' has no member named 'mii_flags'
sam_mii.c:123: error: 'struct mii_softc' has no member named 'mii_capabilities'
sam_mii.c:126: error: 'struct mii_softc' has no member named 'mii_capabilities'
cc: /usr/qnx640/host/qnx6/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.2.4/cc1 error 1
#


Thanks and Regards
K.Senthil
Attachment: Text sam_mii.h 11.33 KB