Remove double-blank lines (Al)

This commit is contained in:
Ben Gras
2005-08-22 15:17:42 +00:00
parent 3aca81a22a
commit e2e90b1fdc
40 changed files with 7 additions and 361 deletions

View File

@@ -32,7 +32,6 @@
#define DMA8_MODE 0x0B
#define DMA8_CLEAR 0x0C
/* If after this preprocessing stuff DMA8_PAGE is not defined
* the 8-bit DMA channel specified is not valid
*/
@@ -55,7 +54,6 @@
#define DMA16_MODE 0xD6
#define DMA16_CLEAR 0xD8
/* If after this preprocessing stuff DMA16_PAGE is not defined
* the 16-bit DMA channel specified is not valid
*/
@@ -71,14 +69,12 @@
# endif
#endif
/* DMA modes */
#define DMA16_AUTO_PLAY 0x58 + (SB_DMA_16 & 3)
#define DMA16_AUTO_REC 0x54 + (SB_DMA_16 & 3)
#define DMA8_AUTO_PLAY 0x58 + SB_DMA_8
#define DMA8_AUTO_REC 0x54 + SB_DMA_8
/* IO ports for soundblaster */
#define DSP_RESET 0x6 + SB_BASE_ADDR
#define DSP_READ 0xA + SB_BASE_ADDR
@@ -93,7 +89,6 @@
#define OPL3_RIGHT 0x2 + SB_BASE_ADDR
#define OPL3_BOTH 0x8 + SB_BASE_ADDR
/* DSP Commands */
#define DSP_INPUT_RATE 0x42 /* set input sample rate */
#define DSP_OUTPUT_RATE 0x41 /* set output sample rate */
@@ -111,14 +106,12 @@
#define DSP_CMD_IRQREQ8 0xF2 /* Interrupt request 8 bit */
#define DSP_CMD_IRQREQ16 0xF3 /* Interrupt request 16 bit */
/* DSP Modes */
#define DSP_MODE_MONO_US 0x00 /* Mono unsigned */
#define DSP_MODE_MONO_S 0x10 /* Mono signed */
#define DSP_MODE_STEREO_US 0x20 /* Stereo unsigned */
#define DSP_MODE_STEREO_S 0x30 /* Stereo signed */
/* MIXER commands */
#define MIXER_RESET 0x00 /* Reset */
#define MIXER_DAC_LEVEL 0x04 /* Used for detection only */
@@ -167,10 +160,8 @@
#define DSP_MIN_FRAGMENT_SIZE 1024 /* Minimum fragment size */
#define DSP_NR_OF_BUFFERS 8
/* Number of bytes you can DMA before hitting a 64K boundary: */
#define dma_bytes_left(phys) \
((unsigned) (sizeof(int) == 2 ? 0 : 0x10000) - (unsigned) ((phys) & 0xFFFF))
#endif /* SB16_H */

View File

@@ -55,7 +55,6 @@ PRIVATE int reviveProcNr;
#define dprint (void)
/*===========================================================================*
* main
*===========================================================================*/
@@ -97,7 +96,6 @@ PUBLIC void main()
}
/*===========================================================================*
* dsp_open
*===========================================================================*/
@@ -126,7 +124,6 @@ PRIVATE int dsp_open()
return OK;
}
/*===========================================================================*
* dsp_close
*===========================================================================*/
@@ -139,7 +136,6 @@ PRIVATE int dsp_close()
return OK;
}
/*===========================================================================*
* dsp_ioctl
*===========================================================================*/
@@ -180,7 +176,6 @@ message *m_ptr;
return status;
}
/*===========================================================================*
* dsp_write
*===========================================================================*/
@@ -240,7 +235,6 @@ message *m_ptr;
notify(m_ptr->m_source);
}
/*===========================================================================*
* dsp_hardware_msg
*===========================================================================*/
@@ -272,7 +266,6 @@ PRIVATE void dsp_hardware_msg()
dsp_inb((DspBits == 8 ? DSP_DATA_AVL : DSP_DATA16_AVL));
}
/*===========================================================================*
* dsp_status *
*===========================================================================*/
@@ -292,7 +285,6 @@ message *m_ptr; /* pointer to the newly arrived message */
send(m_ptr->m_source, m_ptr); /* send the message */
}
/*===========================================================================*
* reply *
*===========================================================================*/
@@ -311,7 +303,6 @@ int status;
send(replyee, &m);
}
/*===========================================================================*
* init_buffer
*===========================================================================*/
@@ -337,7 +328,6 @@ PRIVATE void init_buffer()
#endif /* CHIP == INTEL */
}
/*===========================================================================*
* dsp_inb
*===========================================================================*/
@@ -352,7 +342,6 @@ int port;
return value;
}
/*===========================================================================*
* dsp_outb
*===========================================================================*/
@@ -366,7 +355,6 @@ int value;
panic("SB16DSP","sys_outb() failed", s);
}
/*===========================================================================*
* dsp_init
*===========================================================================*/
@@ -414,7 +402,6 @@ PRIVATE int dsp_init()
return OK;
}
/*===========================================================================*
* dsp_reset
*===========================================================================*/
@@ -436,7 +423,6 @@ PRIVATE int dsp_reset()
return OK;
}
/*===========================================================================*
* dsp_command
*===========================================================================*/
@@ -456,7 +442,6 @@ int value;
return -1;
}
/*===========================================================================*
* dsp_set_size
*===========================================================================*/
@@ -475,7 +460,6 @@ unsigned int size;
return OK;
}
/*===========================================================================*
* dsp_set_speed
*===========================================================================*/
@@ -507,7 +491,6 @@ unsigned int speed;
return OK;
}
/*===========================================================================*
* dsp_set_stereo
*===========================================================================*/
@@ -523,7 +506,6 @@ unsigned int stereo;
return OK;
}
/*===========================================================================*
* dsp_set_bits
*===========================================================================*/
@@ -540,7 +522,6 @@ unsigned int bits;
return OK;
}
/*===========================================================================*
* dsp_set_sign
*===========================================================================*/
@@ -554,7 +535,6 @@ unsigned int sign;
return OK;
}
/*===========================================================================*
* dsp_dma_setup
*===========================================================================*/
@@ -597,7 +577,6 @@ int count;
}
}
/*===========================================================================*
* dsp_setup()
*===========================================================================*/
@@ -638,7 +617,6 @@ PRIVATE void dsp_setup()
}
}
/*===========================================================================*
* mixer_set
*===========================================================================*/
@@ -653,4 +631,4 @@ int data;
dsp_outb(MIXER_DATA, data);
return OK;
}
}