Fix the matcd driver for the new world order. This basically just
renames matcdc to matcd. This change is reported to work by two independent PR originators. In the absence of further feedback on the freebsd-bugs list, we may as well get this working for its two users. PR: 20296 Submitted by: George Russell <george.russell@clara.net>, Remi Guyomarch <rguyom@mail.dotcom.fr>
This commit is contained in:
parent
4fbd047fee
commit
ec81f5f05a
@ -504,7 +504,7 @@ struct isa_driver matcddriver={
|
|||||||
INTR_TYPE_BIO,
|
INTR_TYPE_BIO,
|
||||||
matcd_probe,
|
matcd_probe,
|
||||||
matcd_attach,
|
matcd_attach,
|
||||||
"matcdc"
|
"matcd"
|
||||||
};
|
};
|
||||||
COMPAT_ISA_DRIVER(matcd, matcddriver);
|
COMPAT_ISA_DRIVER(matcd, matcddriver);
|
||||||
|
|
||||||
@ -1207,7 +1207,7 @@ matcd_probe(struct isa_device *dev)
|
|||||||
cdevsw_add(&matcd_cdevsw);
|
cdevsw_add(&matcd_cdevsw);
|
||||||
cdrive=nextcontroller; /*Controller defined by pass for now*/
|
cdrive=nextcontroller; /*Controller defined by pass for now*/
|
||||||
if (nextcontroller==NUMCTRLRS) {
|
if (nextcontroller==NUMCTRLRS) {
|
||||||
printf("matcdc%d: - Too many interfaces specified in config\n",
|
printf("matcd%d: - Too many interfaces specified in config\n",
|
||||||
nextcontroller);
|
nextcontroller);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
@ -1224,7 +1224,7 @@ matcd_probe(struct isa_device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUGPROBE
|
#ifdef DEBUGPROBE
|
||||||
printf("matcdc%d: In probe i %d y %d port %x\n",
|
printf("matcd%d: In probe i %d y %d port %x\n",
|
||||||
nextcontroller,i,y,port);
|
nextcontroller,i,y,port);
|
||||||
#endif /*DEBUGPROBE*/
|
#endif /*DEBUGPROBE*/
|
||||||
#ifdef AUTOHUNT
|
#ifdef AUTOHUNT
|
||||||
@ -1236,7 +1236,7 @@ matcd_probe(struct isa_device *dev)
|
|||||||
for(i=0;i<(sizeof(port_hints)/sizeof(short));i++) {
|
for(i=0;i<(sizeof(port_hints)/sizeof(short));i++) {
|
||||||
port=port_hints[i];
|
port=port_hints[i];
|
||||||
#ifdef DEBUGPROBE
|
#ifdef DEBUGPROBE
|
||||||
printf("matcdc%d: Port hint %x\n",nextcontroller,port);
|
printf("matcd%d: Port hint %x\n",nextcontroller,port);
|
||||||
#endif /*DEBUGPROBE*/
|
#endif /*DEBUGPROBE*/
|
||||||
if (port==-1) {
|
if (port==-1) {
|
||||||
dev->id_iobase=-1; /*Put port ? back*/
|
dev->id_iobase=-1; /*Put port ? back*/
|
||||||
@ -1265,7 +1265,7 @@ matcd_probe(struct isa_device *dev)
|
|||||||
}
|
}
|
||||||
#else /*AUTOHUNT*/
|
#else /*AUTOHUNT*/
|
||||||
if (port==-1) {
|
if (port==-1) {
|
||||||
printf("matcdc%d: AUTOHUNT disabled but port? specified in config\n",
|
printf("matcd%d: AUTOHUNT disabled but port? specified in config\n",
|
||||||
nextcontroller);
|
nextcontroller);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
@ -1315,7 +1315,7 @@ int doprobe(int port,int cdrive)
|
|||||||
inb(port+CMD); /*<20>Read status byte*/
|
inb(port+CMD); /*<20>Read status byte*/
|
||||||
}
|
}
|
||||||
#ifdef DEBUGPROBE
|
#ifdef DEBUGPROBE
|
||||||
printf("matcdc%d: Probe found something\n",nextcontroller);
|
printf("matcd%d: Probe found something\n",nextcontroller);
|
||||||
#endif /*DEBUGPROBE*/
|
#endif /*DEBUGPROBE*/
|
||||||
/*------Don't change anything below this line - see license -----------------*/
|
/*------Don't change anything below this line - see license -----------------*/
|
||||||
if (drivepresent==0) { /*Don't change*/
|
if (drivepresent==0) { /*Don't change*/
|
||||||
@ -1330,7 +1330,7 @@ int doprobe(int port,int cdrive)
|
|||||||
return(0); /*Drive 0 detected*/
|
return(0); /*Drive 0 detected*/
|
||||||
}
|
}
|
||||||
#ifdef DEBUGPROBE
|
#ifdef DEBUGPROBE
|
||||||
printf("matcdc%d: Probe DID NOT find something\n",nextcontroller);
|
printf("matcd%d: Probe DID NOT find something\n",nextcontroller);
|
||||||
#endif /*DEBUGPROBE*/
|
#endif /*DEBUGPROBE*/
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
@ -1356,10 +1356,10 @@ matcd_attach(struct isa_device *dev)
|
|||||||
int port = dev->id_iobase; /*Take port ID selected in probe()*/
|
int port = dev->id_iobase; /*Take port ID selected in probe()*/
|
||||||
|
|
||||||
#ifdef DEBUGPROBE
|
#ifdef DEBUGPROBE
|
||||||
printf("matcdc: Attach dev %x id_unit %d\n",
|
printf("matcd: Attach dev %x id_unit %d\n",
|
||||||
(unsigned int)dev,dev->id_unit);
|
(unsigned int)dev,dev->id_unit);
|
||||||
#endif /*DEBUGPROBE*/
|
#endif /*DEBUGPROBE*/
|
||||||
printf("matcdc%d Host interface type %d\n",
|
printf("matcd%d Host interface type %d\n",
|
||||||
nextcontroller,iftype);
|
nextcontroller,iftype);
|
||||||
bioq_init(&request_head[nextcontroller]);
|
bioq_init(&request_head[nextcontroller]);
|
||||||
for (cdrive=0; cdrive<4; cdrive++) { /*We're hunting drives...*/
|
for (cdrive=0; cdrive<4; cdrive++) { /*We're hunting drives...*/
|
||||||
|
Loading…
Reference in New Issue
Block a user