include/asm-x86/dma.h: checkpatch cleanups - formatting only

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Joe Perches 2008-03-23 01:02:00 -07:00 committed by Ingo Molnar
parent 925a09b27f
commit 113cbebac7
1 changed files with 22 additions and 23 deletions

View File

@ -12,7 +12,6 @@
#include <asm/io.h> /* need byte IO */ #include <asm/io.h> /* need byte IO */
#include <linux/delay.h> #include <linux/delay.h>
#ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER #ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER
#define dma_outb outb_p #define dma_outb outb_p
#else #else
@ -154,20 +153,20 @@
extern spinlock_t dma_spin_lock; extern spinlock_t dma_spin_lock;
static __inline__ unsigned long claim_dma_lock(void) static inline unsigned long claim_dma_lock(void)
{ {
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&dma_spin_lock, flags); spin_lock_irqsave(&dma_spin_lock, flags);
return flags; return flags;
} }
static __inline__ void release_dma_lock(unsigned long flags) static inline void release_dma_lock(unsigned long flags)
{ {
spin_unlock_irqrestore(&dma_spin_lock, flags); spin_unlock_irqrestore(&dma_spin_lock, flags);
} }
/* enable/disable a specific DMA channel */ /* enable/disable a specific DMA channel */
static __inline__ void enable_dma(unsigned int dmanr) static inline void enable_dma(unsigned int dmanr)
{ {
if (dmanr <= 3) if (dmanr <= 3)
dma_outb(dmanr, DMA1_MASK_REG); dma_outb(dmanr, DMA1_MASK_REG);
@ -175,7 +174,7 @@ static __inline__ void enable_dma(unsigned int dmanr)
dma_outb(dmanr & 3, DMA2_MASK_REG); dma_outb(dmanr & 3, DMA2_MASK_REG);
} }
static __inline__ void disable_dma(unsigned int dmanr) static inline void disable_dma(unsigned int dmanr)
{ {
if (dmanr <= 3) if (dmanr <= 3)
dma_outb(dmanr | 4, DMA1_MASK_REG); dma_outb(dmanr | 4, DMA1_MASK_REG);
@ -190,7 +189,7 @@ static __inline__ void disable_dma(unsigned int dmanr)
* --- In order to do that, the DMA routines below should --- * --- In order to do that, the DMA routines below should ---
* --- only be used while holding the DMA lock ! --- * --- only be used while holding the DMA lock ! ---
*/ */
static __inline__ void clear_dma_ff(unsigned int dmanr) static inline void clear_dma_ff(unsigned int dmanr)
{ {
if (dmanr <= 3) if (dmanr <= 3)
dma_outb(0, DMA1_CLEAR_FF_REG); dma_outb(0, DMA1_CLEAR_FF_REG);
@ -199,7 +198,7 @@ static __inline__ void clear_dma_ff(unsigned int dmanr)
} }
/* set mode (above) for a specific DMA channel */ /* set mode (above) for a specific DMA channel */
static __inline__ void set_dma_mode(unsigned int dmanr, char mode) static inline void set_dma_mode(unsigned int dmanr, char mode)
{ {
if (dmanr <= 3) if (dmanr <= 3)
dma_outb(mode | dmanr, DMA1_MODE_REG); dma_outb(mode | dmanr, DMA1_MODE_REG);
@ -212,7 +211,7 @@ static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
* the lower 16 bits of the DMA current address register, but a 64k boundary * the lower 16 bits of the DMA current address register, but a 64k boundary
* may have been crossed. * may have been crossed.
*/ */
static __inline__ void set_dma_page(unsigned int dmanr, char pagenr) static inline void set_dma_page(unsigned int dmanr, char pagenr)
{ {
switch (dmanr) { switch (dmanr) {
case 0: case 0:
@ -243,7 +242,7 @@ static __inline__ void set_dma_page(unsigned int dmanr, char pagenr)
/* Set transfer address & page bits for specific DMA channel. /* Set transfer address & page bits for specific DMA channel.
* Assumes dma flipflop is clear. * Assumes dma flipflop is clear.
*/ */
static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a) static inline void set_dma_addr(unsigned int dmanr, unsigned int a)
{ {
set_dma_page(dmanr, a>>16); set_dma_page(dmanr, a>>16);
if (dmanr <= 3) { if (dmanr <= 3) {
@ -264,7 +263,7 @@ static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
* Assumes dma flip-flop is clear. * Assumes dma flip-flop is clear.
* NOTE 2: "count" represents _bytes_ and must be even for channels 5-7. * NOTE 2: "count" represents _bytes_ and must be even for channels 5-7.
*/ */
static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count) static inline void set_dma_count(unsigned int dmanr, unsigned int count)
{ {
count--; count--;
if (dmanr <= 3) { if (dmanr <= 3) {
@ -288,7 +287,7 @@ static __inline__ void set_dma_count(unsigned int dmanr, unsigned int count)
* *
* Assumes DMA flip-flop is clear. * Assumes DMA flip-flop is clear.
*/ */
static __inline__ int get_dma_residue(unsigned int dmanr) static inline int get_dma_residue(unsigned int dmanr)
{ {
unsigned int io_port; unsigned int io_port;
/* using short to get 16-bit wrap around */ /* using short to get 16-bit wrap around */