1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

Made wcdattach() non-static again. It is called from atapi.c. The

modularization of the wd/wcd/atapi driver is ugly.

Added prototypes.
This commit is contained in:
Bruce Evans 1995-10-29 16:10:06 +00:00
parent 2226a9e686
commit dfd56037f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11923

View File

@ -32,6 +32,8 @@
#include <i386/include/cpufunc.h>
#include <i386/isa/atapi.h>
extern int wcdattach(struct atapi*, int, struct atapi_params*, int, struct kern_devconf*);
#define NUNIT (NWDC*2) /* Max. number of devices */
#define UNIT(d) ((minor(d) >> 3) & 3) /* Unit part of minor device number */
#define SECSIZE 2048 /* CD-ROM sector size in bytes */
@ -210,6 +212,7 @@ static int wcd_request_wait (struct wcd *t, u_char cmd, u_char a1, u_char a2,
static int wcd_externalize (struct proc*, struct kern_devconf*, void*, size_t);
static int wcd_goaway (struct kern_devconf *kdc, int force);
static void wcd_describe (struct wcd *t);
static int wcd_open(dev_t dev, int rawflag);
static int wcd_setchan (struct wcd *t,
u_char c0, u_char c1, u_char c2, u_char c3);
static int wcd_eject (struct wcd *t);
@ -245,7 +248,7 @@ static int wcd_goaway (struct kern_devconf *kdc, int force)
return 0;
}
static int
int
wcdattach (struct atapi *ata, int unit, struct atapi_params *ap, int debug,
struct kern_devconf *parent)
{