Drivers: fix issues introduced by commit b198207
This commit is contained in:
parent
5320333614
commit
47aad344c3
6 changed files with 16 additions and 2 deletions
|
@ -106,7 +106,6 @@
|
|||
#include <minix/drivers.h>
|
||||
#include <minix/driver_mt.h>
|
||||
#include <minix/drvlib.h>
|
||||
#include <minix/u64.h>
|
||||
#include <machine/pci.h>
|
||||
#include <sys/ioc_disk.h>
|
||||
#include <sys/mman.h>
|
||||
|
|
|
@ -193,7 +193,7 @@ dpeth_t *dep;
|
|||
#endif
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
#if 0
|
||||
for (i= 0; i<64; i++)
|
||||
printf("%x ", get_ee_word(dep, i));
|
||||
printf("\n");
|
||||
|
|
|
@ -632,6 +632,9 @@ static int fxp_probe(fxp_t *fp, int skip)
|
|||
static void fxp_conf_hw(fxp_t *fp)
|
||||
{
|
||||
int mwi, ext_stat1, ext_stat2, lim_fifo, i82503, fc;
|
||||
#if VERBOSE
|
||||
int i;
|
||||
#endif
|
||||
|
||||
fp->fxp_mode= FM_DISABLED; /* Superfluous */
|
||||
|
||||
|
|
|
@ -646,6 +646,9 @@ static void ec_init(ec)
|
|||
ether_card_t *ec;
|
||||
{
|
||||
int r;
|
||||
#if VERBOSE
|
||||
int i;
|
||||
#endif
|
||||
|
||||
/* General initialization */
|
||||
ec->flags = ECF_EMPTY;
|
||||
|
|
|
@ -461,6 +461,9 @@ int skip;
|
|||
u16_t vid, did;
|
||||
u32_t bar;
|
||||
u8_t ilr;
|
||||
#if VERBOSE
|
||||
char *dname;
|
||||
#endif
|
||||
|
||||
if ((rep->re_pcibus | rep->re_pcidev | rep->re_pcifunc) != 0)
|
||||
{
|
||||
|
|
|
@ -187,6 +187,9 @@ PRIVATE void hw_init(struct port *pp)
|
|||
u8_t v8;
|
||||
u16_t v16;
|
||||
u32_t v32;
|
||||
#if USE_INTS
|
||||
int r, irq;
|
||||
#endif
|
||||
|
||||
devind= pp->p_devind;
|
||||
if (debug)
|
||||
|
@ -316,6 +319,9 @@ PRIVATE void do_int(struct port *pp)
|
|||
u32_t csr_event, csr_present, csr_control;
|
||||
u8_t v8;
|
||||
u16_t v16;
|
||||
#if USE_INTS
|
||||
int r;
|
||||
#endif
|
||||
|
||||
devind= pp->p_devind;
|
||||
v8= pci_attr_r8(devind, TI_CARD_CTRL);
|
||||
|
|
Loading…
Reference in a new issue