summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/matcd
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 08:16:23 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 08:16:23 +0000
commitc86f0c7a71e7ade3e38b325c186a9cf374e0411e (patch)
tree176f04f674860c7cfae9ac5d2ff4d4e1d73cb2b7 /sys/i386/isa/matcd
parent423ba8f9bc23d93bfc244aca9b12563b1c9de90d (diff)
downloadFreeBSD-src-c86f0c7a71e7ade3e38b325c186a9cf374e0411e.zip
FreeBSD-src-c86f0c7a71e7ade3e38b325c186a9cf374e0411e.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'sys/i386/isa/matcd')
-rw-r--r--sys/i386/isa/matcd/audio.c8
-rw-r--r--sys/i386/isa/matcd/creative.h8
-rw-r--r--sys/i386/isa/matcd/matcd.c70
-rw-r--r--sys/i386/isa/matcd/matcd.h6
-rw-r--r--sys/i386/isa/matcd/options.h18
5 files changed, 55 insertions, 55 deletions
diff --git a/sys/i386/isa/matcd/audio.c b/sys/i386/isa/matcd/audio.c
index 837689a..e9c70f4 100644
--- a/sys/i386/isa/matcd/audio.c
+++ b/sys/i386/isa/matcd/audio.c
@@ -41,18 +41,18 @@
conditions even if it is unsupported, not a complete system
and/or does not contain compiled code.
8. These conditions will be in force for the full life of the
- copyright.
+ copyright.
9. If all the above conditions are met, modifications to other
parts of this file may be freely made, although any person
or persons making changes do not receive the right to add their
name or names to the copyright strings and notices in this
software. Persons making changes are encouraged to insert edit
history in matcd.c and to put your name and details of the
- change there.
+ change there.
10. You must have prior written permission from the author to
deviate from these terms.
- Vendors who produce product(s) containing this code are encouraged
+ Vendors who produce product(s) containing this code are encouraged
(but not required) to provide copies of the finished product(s) to
the author and to correspond with the author about development
activity relating to this code. Donations of development hardware
@@ -481,7 +481,7 @@ static int matcd_pitch(int ldrive, int cdrive, int controller,
"play slower", 0x0000 flat and 1 to 32767 being "play faster"
within the scale allowed by the device. The value is scaled to fit
the allowed by the device and any excess is treated as being
- the positive or negative limit. No ioctl input value is considered
+ the positive or negative limit. No ioctl input value is considered
invalid.
This device has a +/- 13% playback pitch specified by a range
diff --git a/sys/i386/isa/matcd/creative.h b/sys/i386/isa/matcd/creative.h
index 152128c..b918e48 100644
--- a/sys/i386/isa/matcd/creative.h
+++ b/sys/i386/isa/matcd/creative.h
@@ -41,18 +41,18 @@
conditions even if it is unsupported, not a complete system
and/or does not contain compiled code.
8. These conditions will be in force for the full life of the
- copyright.
+ copyright.
9. If all the above conditions are met, modifications to other
parts of this file may be freely made, although any person
or persons making changes do not receive the right to add their
name or names to the copyright strings and notices in this
software. Persons making changes are encouraged to insert edit
history in matcd.c and to put your name and details of the
- change there.
+ change there.
10. You must have prior written permission from the author to
deviate from these terms.
- Vendors who produce product(s) containing this code are encouraged
+ Vendors who produce product(s) containing this code are encouraged
(but not required) to provide copies of the finished product(s) to
the author and to correspond with the author about development
activity relating to this code. Donations of development hardware
@@ -89,7 +89,7 @@ See matcd.c for Edit History
See matcd.h for defines related to the Matsushita drive itself.
*/
-
+
/* Creative Labs (and compatible) I/O port mapping offsets
*/
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c
index e2d642c..1809ec9 100644
--- a/sys/i386/isa/matcd/matcd.c
+++ b/sys/i386/isa/matcd/matcd.c
@@ -41,18 +41,18 @@
conditions even if it is unsupported, not a complete system
and/or does not contain compiled code.
8. These conditions will be in force for the full life of the
- copyright.
+ copyright.
9. If all the above conditions are met, modifications to other
parts of this file may be freely made, although any person
or persons making changes do not receive the right to add their
name or names to the copyright strings and notices in this
software. Persons making changes are encouraged to insert edit
history in matcd.c and to put your name and details of the
- change there.
+ change there.
10. You must have prior written permission from the author to
deviate from these terms.
- Vendors who produce product(s) containing this code are encouraged
+ Vendors who produce product(s) containing this code are encouraged
(but not required) to provide copies of the finished product(s) to
the author and to correspond with the author about development
activity relating to this code. Donations of development hardware
@@ -157,7 +157,7 @@ Edit number code marking begins here - earlier edits were during development.
24-Feb-95 Frank Durda IV bsdmail@nemesis.lonestar.org
<9> Added some additional disk-related ioctl functions that didn't
- make it into earlier versions.
+ make it into earlier versions.
26-Feb-95 Frank Durda IV bsdmail@nemesis.lonestar.org
<10> Updated some conditionals so the code will compile under
@@ -391,7 +391,7 @@ static struct kern_devconf kdc_matcd[TOTALDRIVES] = { { /*<12>*/
} }; /*<12>*/
#endif /*FREE2*/
-
+
/*---------------------------------------------------------------------------
These macros take apart the minor number and yield the
partition, drive on controller, and controller.
@@ -443,7 +443,7 @@ struct isa_driver matcddriver={matcd_probe, matcd_attach, /*<16>*/
static void matcd_start(struct buf *dp);
static void zero_cmd(char *);
-static void matcd_pread(int port, int count, unsigned char * data);
+static void matcd_pread(int port, int count, unsigned char * data);
static int matcd_fastcmd(int port,int ldrive,int cdrive,
unsigned char * cp);
static void matcd_slowcmd(int port,int ldrive,int cdrive,
@@ -501,7 +501,7 @@ static int docmd(char * cmd, int ldrive, int cdrive, /*<14>*/
This routine actually gets called every time anybody opens
any partition on a drive. But the first call is the one that
- does all the work.
+ does all the work.
<15> If LOCKDRIVE is enabled, additional minor number devices allow
<15> the drive to be locked while being accessed.
@@ -520,7 +520,7 @@ int matcdopen(dev_t dev)
#ifdef DIAGPORT
DIAGOUT(DIAGPORT,0x10); /*Show where we are*/
#endif /*DIAGPORT*/
- ldrive=matcd_ldrive(dev);
+ ldrive=matcd_ldrive(dev);
cdrive=matcd_cdrive(dev);
partition=matcd_partition(dev);
controller=matcd_controller(dev);
@@ -537,7 +537,7 @@ int matcdopen(dev_t dev)
#endif /*DEBUGOPEN*/
if (!(cd->flags & MATCDINIT)) { /*Did probe find this drive*/
- return(ENXIO);
+ return(ENXIO);
}
if (!(cd->flags & MATCDLABEL) &&
@@ -558,7 +558,7 @@ int matcdopen(dev_t dev)
#ifdef DEBUGOPEN
printf("matcd%d Result of NOP is %x %x\n",ldrive,i,z); /*<16>*/
#endif /*DEBUGOPEN*/
- if ((z & MATCD_ST_DSKIN)==0) { /*Is there a disc in the drive?*/
+ if ((z & MATCD_ST_DSKIN)==0) { /*Is there a disc in the drive?*/
#ifdef DEBUGOPEN
printf("matcd%d: No Disc in open\n",ldrive);
#endif /*DEBUGOPEN*/
@@ -592,7 +592,7 @@ int matcdopen(dev_t dev)
}
}
unlockbus(controller, ldrive); /*Release bus lock*/
-
+
/* Here we fill in the disklabel structure although most is
hardcoded.
*/
@@ -652,7 +652,7 @@ int matcdopen(dev_t dev)
cd->flags |= MATCDLABEL; /*Mark drive as having TOC*/
}
-
+
#ifdef DEBUGOPEN
printf("matcd%d open2: partition=%d disksize=%d blksize=%x flags=%x\n",
ldrive,partition,(int)cd->disksize,cd->blksize,cd->flags);
@@ -669,7 +669,7 @@ int matcdopen(dev_t dev)
#endif /*LOCKDRIVE*/
cd->openflags |= (1<<partition);/*Mark partition open*/
- if (partition==RAW_PART ||
+ if (partition==RAW_PART ||
(partition < cd->dlabel.d_npartitions &&
cd->dlabel.d_partitions[partition].p_fstype != FS_UNUSED)) {
cd->partflags[partition] |= MATCDOPEN;
@@ -715,7 +715,7 @@ int matcdclose(dev_t dev)
#ifdef DIAGPORT
DIAGOUT(DIAGPORT,0x20); /*Show where we are*/
#endif /*DIAGPORT*/
- if (ldrive >= TOTALDRIVES)
+ if (ldrive >= TOTALDRIVES)
return(ENXIO);
partition = matcd_partition(dev);
@@ -816,7 +816,7 @@ void matcdstrategy(struct buf *bp)
printf("Block %d\n",(int)bp->b_pblkno);
#ifdef FREE2
bp=bp->b_actf;
-#else /*FREE2*/
+#else /*FREE2*/
bp=bp->av_forw;
#endif /*FREE2*/
}
@@ -1054,9 +1054,9 @@ int matcdsize(dev_t dev)
ldrive=matcd_ldrive(dev);
part=matcd_partition(dev);
- if (part==RAW_PART)
+ if (part==RAW_PART)
blksize=MATCDRBLK; /*2352*/
- else
+ else
blksize=MATCDBLK; /*2048*/
cd = &matcd_data[ldrive];
@@ -1084,10 +1084,10 @@ int matcdsize(dev_t dev)
The probe routine can be compiled two ways. In AUTOHUNT mode,
the kernel config file can say "port?" and we will check all ports
- listed in the port_hint array (see above).
+ listed in the port_hint array (see above).
Without AUTOHUNT set, the config file must list a specific port
- address to check.
+ address to check.
Note that specifying the explicit addresses makes boot-up a lot
faster.
@@ -1106,7 +1106,7 @@ int matcdsize(dev_t dev)
software, there are probably 8 different board models called
Sound Blaster 16. These include "Vibra", "Value", etc.
- Please report additional part numbers and board descriptions
+ Please report additional part numbers and board descriptions
and new port numbers that work to the author.
---------------------------------------------------------------------------*/
@@ -1195,7 +1195,7 @@ int matcd_probe(struct isa_device *dev)
}
/*---------------------------------------------------------------------------
- doprobe - Common probe code that actually checks the ports we
+ doprobe - Common probe code that actually checks the ports we
have decided to test.
---------------------------------------------------------------------------*/
@@ -1497,7 +1497,7 @@ void draincmd(int port,int cdrive,int ldrive)
i=inb(port+STATUS);
if (i==0xff) return;
-
+
printf("matcd%d: in draincmd: bus not idle %x - trying to fix\n",
ldrive,inb(port+STATUS));
if ((i & (DTEN|STEN)) == STEN) {
@@ -1563,7 +1563,7 @@ void selectdrive(int port,int drive)
matcd_pread - Read small blocks of control data from a drive
---------------------------------------------------------------------------*/
-void matcd_pread(int port, int count, unsigned char * data)
+void matcd_pread(int port, int count, unsigned char * data)
{
int i;
@@ -1683,14 +1683,14 @@ static int matcd_volinfo(int ldrive)
data[0],data[1],data[2], data[3],data[4],data[5]);
printf("status byte %x\n",z);
#endif /*DEBUGOPEN*/
- if ((z & MATCD_ST_ERROR)==0)
+ if ((z & MATCD_ST_ERROR)==0)
break; /*No Error*/
/* If media change or other error, you have to read error data or
the drive will reject subsequent commands.
*/
- if (chk_error(get_error(port, ldrive, cdrive))==ERR_FATAL) {
+ if (chk_error(get_error(port, ldrive, cdrive))==ERR_FATAL) {
#ifdef DEBUGOPEN
printf("matcd%d: command failed, status %x\n",
ldrive,z);
@@ -1724,7 +1724,7 @@ static int matcd_volinfo(int ldrive)
/*---------------------------------------------------------------------------
- blk_to_msf - Convert block numbers into CD disk block ids
+ blk_to_msf - Convert block numbers into CD disk block ids
---------------------------------------------------------------------------*/
static void blk_to_msf(int blk, unsigned char *msf)
@@ -1749,7 +1749,7 @@ static int msf_to_blk(unsigned char * cd)
+cd[1])*75 /*Blocks minus 2*/
+cd[2]-150); /*seconds*/
}
-
+
/*---------------------------------------------------------------------------
matcd_blockread - Performs actual background disc I/O operations
@@ -1839,10 +1839,10 @@ nextblock:
#endif /*DEBUGIO*/
blknum=(bp->b_blkno / (mbx->sz/DEV_BSIZE))
- + mbx->p_offset + mbx->skip/mbx->sz;
+ + mbx->p_offset + mbx->skip/mbx->sz;
blk_to_msf(blknum,rbuf.start_msf);
-
+
zero_cmd(cmd);
cmd[0]=READ; /*Get drive ID*/
cmd[1]=rbuf.start_msf[0];
@@ -1922,11 +1922,11 @@ nextblock:
}
bp->b_resid=0;
biodone(bp); /*Signal transfer complete*/
-
+
unlockbus(ldrive>>2, ldrive); /*Release bus lock*/
matcd_start(dp);/*See if other drives have work*/
return;
-
+
/* Here we skipped the data phase and went directly to status.
This indicates a hard error.
*/
@@ -2065,7 +2065,7 @@ int chk_error(int errnum)
case DISC_OUT:
case HARD_RESET:
return (ERR_INIT);
-
+
/* These errors indicate the system is confused about the drive
or media, and point to bugs in the driver or OS. These errors
cannot be retried since you will always get the same error.
@@ -2096,7 +2096,7 @@ int chk_error(int errnum)
the drives on a given controller, plus it leaves the other drives
unaffected.
---------------------------------------------------------------------------*/
-
+
int get_stat(int port,int ldrive)
{
int status,busstat; /*<16>*/
@@ -2439,7 +2439,7 @@ static int matcd_read_subq(int ldrive, int cdrive, int controller,
/* We only support the ioctl functions we could get information
on, so test for the things we can do
*/
-
+
if (sqp->data_format!=CD_CURRENT_POSITION ||
sqp->address_format!=CD_MSF_FORMAT) {
return(EINVAL);
@@ -2546,7 +2546,7 @@ static int matcd_igot(struct ioc_capability * sqp)
CDREADHEADER); /*Can read TOC*/
return(0);
}
-
+
#ifdef FULLDRIVER
#include "i386/isa/matcd/audio.c" /*<15>ioctls related to
diff --git a/sys/i386/isa/matcd/matcd.h b/sys/i386/isa/matcd/matcd.h
index be261a2..8802149 100644
--- a/sys/i386/isa/matcd/matcd.h
+++ b/sys/i386/isa/matcd/matcd.h
@@ -41,18 +41,18 @@
conditions even if it is unsupported, not a complete system
and/or does not contain compiled code.
8. These conditions will be in force for the full life of the
- copyright.
+ copyright.
9. If all the above conditions are met, modifications to other
parts of this file may be freely made, although any person
or persons making changes do not receive the right to add their
name or names to the copyright strings and notices in this
software. Persons making changes are encouraged to insert edit
history in matcd.c and to put your name and details of the
- change there.
+ change there.
10. You must have prior written permission from the author to
deviate from these terms.
- Vendors who produce product(s) containing this code are encouraged
+ Vendors who produce product(s) containing this code are encouraged
(but not required) to provide copies of the finished product(s) to
the author and to correspond with the author about development
activity relating to this code. Donations of development hardware
diff --git a/sys/i386/isa/matcd/options.h b/sys/i386/isa/matcd/options.h
index 67ff531..c60d83f 100644
--- a/sys/i386/isa/matcd/options.h
+++ b/sys/i386/isa/matcd/options.h
@@ -41,18 +41,18 @@
conditions even if it is unsupported, not a complete system
and/or does not contain compiled code.
8. These conditions will be in force for the full life of the
- copyright.
+ copyright.
9. If all the above conditions are met, modifications to other
parts of this file may be freely made, although any person
or persons making changes do not receive the right to add their
name or names to the copyright strings and notices in this
software. Persons making changes are encouraged to insert edit
history in matcd.c and to put your name and details of the
- change there.
+ change there.
10. You must have prior written permission from the author to
deviate from these terms.
- Vendors who produce product(s) containing this code are encouraged
+ Vendors who produce product(s) containing this code are encouraged
(but not required) to provide copies of the finished product(s) to
the author and to correspond with the author about development
activity relating to this code. Donations of development hardware
@@ -79,7 +79,7 @@
/* AUTOHUNT Adds extra code that allows the driver to search
for interface cards rather than having to hard-code
- the locations in the kernel conf file.
+ the locations in the kernel conf file.
Leaving AUTOHUNT enabled is the recommended setting.
*/
@@ -113,7 +113,7 @@
Leaving RESETONBOOT enabled is the recommended setting.
*/
-#define RESETONBOOT
+#define RESETONBOOT
/*<15> LOCKDRIVE If enabled, when a drive is opened using a
@@ -131,7 +131,7 @@
/*<5> FREE2 If enabled, the changes are inserted so this
<5> module will compile in the world of FreeBSD 2.x.
-<5> Without this, it is known to work in
+<5> Without this, it is known to work in
<14> FreeBSD 1.1.5.1. FREE2 should be set automatically
<14> by using the system version compile symbol below.
<5>*/
@@ -172,7 +172,7 @@
the -1 end-of-table marker. The values already present are
the ones found on standard SoundBlaster 16 and standalone cards.
---------------------------------------------------------------------------*/
-
+
#ifdef AUTOHUNT
int port_hints[]={
0x230,0x240, /*Ports SB audio boards can use*/
@@ -205,7 +205,7 @@ int port_hints[]={
loop endlessly if queues are not null terminated
as they should be.
*/
-
+
/*#define DEBUGQUEUE*/
@@ -261,7 +261,7 @@ int port_hints[]={
<10> (0x300) is reset in our probe and open routines.
<10> DO NOT use DIAGPORT 0x302 if an adapter is present
<10> at that address. It could ruin the EEPROM settings
-<10> on the device.
+<10> on the device.
*/
/*#define DIAGPORT 0x80*/
OpenPOWER on IntegriCloud