Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113065
b: refs/heads/master
c: aae7fb8
h: refs/heads/master
i:
  113063: a328126
v: v3
  • Loading branch information
David S. Miller committed Aug 30, 2008
1 parent f8d8b0b commit 229ae5f
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39890072b320e7731b105b459cee1320957adbc7
refs/heads/master: aae7fb87ec4d2df6cb551670b1765cf4e5795a3b
31 changes: 0 additions & 31 deletions trunk/arch/sparc/include/asm/ebus_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,6 @@ struct linux_ebus {
};
#define to_ebus(d) container_of(d, struct linux_ebus, ofdev.dev)

struct ebus_dma_info {
spinlock_t lock;
void __iomem *regs;

unsigned int flags;
#define EBUS_DMA_FLAG_USE_EBDMA_HANDLER 0x00000001
#define EBUS_DMA_FLAG_TCI_DISABLE 0x00000002

/* These are only valid is EBUS_DMA_FLAG_USE_EBDMA_HANDLER is
* set.
*/
void (*callback)(struct ebus_dma_info *p, int event, void *cookie);
void *client_cookie;
unsigned int irq;
#define EBUS_DMA_EVENT_ERROR 1
#define EBUS_DMA_EVENT_DMA 2
#define EBUS_DMA_EVENT_DEVICE 4

unsigned char name[64];
};

extern int ebus_dma_register(struct ebus_dma_info *p);
extern int ebus_dma_irq_enable(struct ebus_dma_info *p, int on);
extern void ebus_dma_unregister(struct ebus_dma_info *p);
extern int ebus_dma_request(struct ebus_dma_info *p, dma_addr_t bus_addr,
size_t len);
extern void ebus_dma_prepare(struct ebus_dma_info *p, int write);
extern unsigned int ebus_dma_residue(struct ebus_dma_info *p);
extern unsigned int ebus_dma_addr(struct ebus_dma_info *p);
extern void ebus_dma_enable(struct ebus_dma_info *p, int on);

extern struct linux_ebus *ebus_chain;

extern void ebus_init(void);
Expand Down
35 changes: 35 additions & 0 deletions trunk/arch/sparc/include/asm/ebus_dma.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#ifndef __ASM_SPARC_EBUS_DMA_H
#define __ASM_SPARC_EBUS_DMA_H

struct ebus_dma_info {
spinlock_t lock;
void __iomem *regs;

unsigned int flags;
#define EBUS_DMA_FLAG_USE_EBDMA_HANDLER 0x00000001
#define EBUS_DMA_FLAG_TCI_DISABLE 0x00000002

/* These are only valid is EBUS_DMA_FLAG_USE_EBDMA_HANDLER is
* set.
*/
void (*callback)(struct ebus_dma_info *p, int event, void *cookie);
void *client_cookie;
unsigned int irq;
#define EBUS_DMA_EVENT_ERROR 1
#define EBUS_DMA_EVENT_DMA 2
#define EBUS_DMA_EVENT_DEVICE 4

unsigned char name[64];
};

extern int ebus_dma_register(struct ebus_dma_info *p);
extern int ebus_dma_irq_enable(struct ebus_dma_info *p, int on);
extern void ebus_dma_unregister(struct ebus_dma_info *p);
extern int ebus_dma_request(struct ebus_dma_info *p, dma_addr_t bus_addr,
size_t len);
extern void ebus_dma_prepare(struct ebus_dma_info *p, int write);
extern unsigned int ebus_dma_residue(struct ebus_dma_info *p);
extern unsigned int ebus_dma_addr(struct ebus_dma_info *p);
extern void ebus_dma_enable(struct ebus_dma_info *p, int on);

#endif /* __ASM_SPARC_EBUS_DMA_H */
1 change: 1 addition & 0 deletions trunk/arch/sparc/include/asm/floppy_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ static int sun_fd_eject(int drive)

#ifdef CONFIG_PCI
#include <asm/ebus.h>
#include <asm/ebus_dma.h>
#include <asm/ns87303.h>

static struct ebus_dma_info sun_pci_fd_ebus_dma;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sparc/include/asm/parport.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <linux/of_device.h>

#include <asm/ebus.h>
#include <asm/ebus_dma.h>
#include <asm/ns87303.h>
#include <asm/prom.h>

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/sparc64/kernel/ebus.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <asm/system.h>
#include <asm/page.h>
#include <asm/ebus.h>
#include <asm/ebus_dma.h>
#include <asm/oplib.h>
#include <asm/prom.h>
#include <asm/irq.h>
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/sparc/cs4231.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#define EBUS_SUPPORT
#include <linux/pci.h>
#include <asm/ebus.h>
#include <asm/ebus_dma.h>
#endif

static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
Expand Down

0 comments on commit 229ae5f

Please sign in to comment.