Commit 10a08493 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Christoph Hellwig

[PATCH] SCSI NCR53C9x.c: some cleanups

  - Make esp_bootup_reset() global again, since the Amiga Oktagon SCSI driver
    needs it, and move its prototype from oktagon_esp.c to NCR53C9x.h
  - Make esp_cmd() static in the debug case. It's already a local macro in the
    non-debug case.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 59d65505
...@@ -290,7 +290,7 @@ static inline void esp_advance_phase(Scsi_Cmnd *s, int newphase) ...@@ -290,7 +290,7 @@ static inline void esp_advance_phase(Scsi_Cmnd *s, int newphase)
#endif #endif
#ifdef DEBUG_ESP_CMDS #ifdef DEBUG_ESP_CMDS
inline void esp_cmd(struct NCR_ESP *esp, struct ESP_regs *eregs, static inline void esp_cmd(struct NCR_ESP *esp, struct ESP_regs *eregs,
unchar cmd) unchar cmd)
{ {
esp->espcmdlog[esp->espcmdent] = cmd; esp->espcmdlog[esp->espcmdent] = cmd;
...@@ -505,7 +505,7 @@ static void esp_reset_esp(struct NCR_ESP *esp, struct ESP_regs *eregs) ...@@ -505,7 +505,7 @@ static void esp_reset_esp(struct NCR_ESP *esp, struct ESP_regs *eregs)
} }
/* This places the ESP into a known state at boot time. */ /* This places the ESP into a known state at boot time. */
static void esp_bootup_reset(struct NCR_ESP *esp, struct ESP_regs *eregs) void esp_bootup_reset(struct NCR_ESP *esp, struct ESP_regs *eregs)
{ {
volatile unchar trash; volatile unchar trash;
......
...@@ -652,7 +652,7 @@ extern int nesps, esps_in_use, esps_running; ...@@ -652,7 +652,7 @@ extern int nesps, esps_in_use, esps_running;
/* External functions */ /* External functions */
extern void esp_cmd(struct NCR_ESP *esp, struct ESP_regs *eregs, unchar cmd); extern void esp_bootup_reset(struct NCR_ESP *esp, struct ESP_regs *eregs);
extern struct NCR_ESP *esp_allocate(Scsi_Host_Template *, void *); extern struct NCR_ESP *esp_allocate(Scsi_Host_Template *, void *);
extern void esp_deallocate(struct NCR_ESP *); extern void esp_deallocate(struct NCR_ESP *);
extern void esp_release(void); extern void esp_release(void);
......
...@@ -72,8 +72,6 @@ static void dma_mmu_release_scsi_sgl(struct NCR_ESP *,Scsi_Cmnd *); ...@@ -72,8 +72,6 @@ static void dma_mmu_release_scsi_sgl(struct NCR_ESP *,Scsi_Cmnd *);
static void dma_advance_sg(Scsi_Cmnd *); static void dma_advance_sg(Scsi_Cmnd *);
static int oktagon_notify_reboot(struct notifier_block *this, unsigned long code, void *x); static int oktagon_notify_reboot(struct notifier_block *this, unsigned long code, void *x);
void esp_bootup_reset(struct NCR_ESP *esp,struct ESP_regs *eregs);
#ifdef USE_BOTTOM_HALF #ifdef USE_BOTTOM_HALF
static void dma_commit(void *opaque); static void dma_commit(void *opaque);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment