forked from Imagelibrary/rtems
smc91111: Move driver attach prototype to header file.
Also signal to compiler that the start variable in lan91cxx_recv is only used when debugging.
This commit is contained in:
committed by
Joel Sherrill
parent
82e507e3e8
commit
5130248e12
@@ -64,11 +64,6 @@ scmv91111_configuration_t mpc5554_scmv91111_configuration = {
|
||||
(void *)0
|
||||
};
|
||||
|
||||
int _rtems_smc91111_driver_attach(
|
||||
struct rtems_bsdnet_ifconfig *config,
|
||||
scmv91111_configuration_t *scm_config
|
||||
);
|
||||
|
||||
/*
|
||||
* Attach an SMC91111 driver to the system
|
||||
*/
|
||||
|
||||
@@ -40,11 +40,6 @@ scmv91111_configuration_t leon_scmv91111_configuration = {
|
||||
1 /* autoneg */
|
||||
};
|
||||
|
||||
int _rtems_smc91111_driver_attach(
|
||||
struct rtems_bsdnet_ifconfig *config,
|
||||
scmv91111_configuration_t *scm_config
|
||||
);
|
||||
|
||||
/*
|
||||
* Attach an SMC91111 driver to the system
|
||||
*/
|
||||
|
||||
@@ -23,9 +23,6 @@ scmv91111_configuration_t leon_scmv91111_configuration = {
|
||||
1 /* autoneg */
|
||||
};
|
||||
|
||||
int _rtems_smc91111_driver_attach (struct rtems_bsdnet_ifconfig *config,
|
||||
scmv91111_configuration_t * scm_config);
|
||||
|
||||
/*
|
||||
* Attach an SMC91111 driver to the system
|
||||
*/
|
||||
|
||||
@@ -82,7 +82,7 @@ static void lan91cxx_phy_configure(struct lan91cxx_priv_data *cpd);
|
||||
#define max(l,r) ((l) > (r) ? (l) : (r))
|
||||
|
||||
/* \ ------------- Interrupt ------------- \ */
|
||||
void lan91cxx_interrupt_handler(void *arg)
|
||||
static void lan91cxx_interrupt_handler(void *arg)
|
||||
{
|
||||
struct lan91cxx_priv_data *cpd = arg;
|
||||
unsigned short irq, event;
|
||||
@@ -153,6 +153,9 @@ static void lan91cxx_recv(struct lan91cxx_priv_data *cpd, struct mbuf *m)
|
||||
rxd_t *data = NULL, val;
|
||||
#if DEBUG & 64
|
||||
rxd_t lp = 0;
|
||||
#else
|
||||
/* start is only read with debug enabled */
|
||||
(void)start;
|
||||
#endif
|
||||
struct mbuf *n;
|
||||
dbg_prefix = "<";
|
||||
@@ -247,7 +250,6 @@ static void lan91cxx_recv(struct lan91cxx_priv_data *cpd, struct mbuf *m)
|
||||
}
|
||||
}
|
||||
db64_printf(" \n");
|
||||
|
||||
#endif
|
||||
}
|
||||
val = get_data(cpd); /* Read control word (and potential data) unconditionally */
|
||||
@@ -657,7 +659,7 @@ static void sendpacket(struct ifnet *ifp, struct mbuf *m)
|
||||
dbg_prefix = "";
|
||||
}
|
||||
|
||||
void smc91111_txDaemon(void *arg)
|
||||
static void smc91111_txDaemon(void *arg)
|
||||
{
|
||||
struct lan91cxx_priv_data *cpd = arg;
|
||||
struct ifnet *ifp = &cpd->arpcom.ac_if;
|
||||
|
||||
@@ -18,6 +18,9 @@ typedef struct scmv91111_configuration {
|
||||
#endif
|
||||
} scmv91111_configuration_t;
|
||||
|
||||
int _rtems_smc91111_driver_attach (struct rtems_bsdnet_ifconfig *config,
|
||||
scmv91111_configuration_t * scm_config);
|
||||
|
||||
#endif /* _SMC_91111_EXP_H_ */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user