stdma.c (2850bc273776cbb1b510c5828e9e456dffb50a32) stdma.c (40220c1a192f51695f806d75b1f9970f0f17a6e8)
1/*
2 * linux/arch/m68k/atari/stmda.c
3 *
4 * Copyright (C) 1994 Roman Hodek
5 *
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file COPYING in the main directory of this archive

--- 30 unchanged lines hidden (view full) ---

39#include <asm/atari_stdma.h>
40#include <asm/atariints.h>
41#include <asm/atarihw.h>
42#include <asm/io.h>
43#include <asm/irq.h>
44
45static int stdma_locked; /* the semaphore */
46 /* int func to be called */
1/*
2 * linux/arch/m68k/atari/stmda.c
3 *
4 * Copyright (C) 1994 Roman Hodek
5 *
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file COPYING in the main directory of this archive

--- 30 unchanged lines hidden (view full) ---

39#include <asm/atari_stdma.h>
40#include <asm/atariints.h>
41#include <asm/atarihw.h>
42#include <asm/io.h>
43#include <asm/irq.h>
44
45static int stdma_locked; /* the semaphore */
46 /* int func to be called */
47static irqreturn_t (*stdma_isr)(int, void *);
47static irq_handler_t stdma_isr;
48static void *stdma_isr_data; /* data passed to isr */
49static DECLARE_WAIT_QUEUE_HEAD(stdma_wait); /* wait queue for ST-DMA */
50
51
52
53
54/***************************** Prototypes *****************************/
55

--- 14 unchanged lines hidden (view full) ---

70 *
71 * Inputs: A interrupt function that is called until the lock is
72 * released.
73 *
74 * Returns: nothing
75 *
76 */
77
48static void *stdma_isr_data; /* data passed to isr */
49static DECLARE_WAIT_QUEUE_HEAD(stdma_wait); /* wait queue for ST-DMA */
50
51
52
53
54/***************************** Prototypes *****************************/
55

--- 14 unchanged lines hidden (view full) ---

70 *
71 * Inputs: A interrupt function that is called until the lock is
72 * released.
73 *
74 * Returns: nothing
75 *
76 */
77
78void stdma_lock(irqreturn_t (*handler)(int, void *), void *data)
78void stdma_lock(irq_handler_t handler, void *data)
79{
80 unsigned long flags;
81
82 local_irq_save(flags); /* protect lock */
83
84 /* Since the DMA is used for file system purposes, we
85 have to sleep uninterruptible (there may be locked
86 buffers) */

--- 109 unchanged lines hidden ---
79{
80 unsigned long flags;
81
82 local_irq_save(flags); /* protect lock */
83
84 /* Since the DMA is used for file system purposes, we
85 have to sleep uninterruptible (there may be locked
86 buffers) */

--- 109 unchanged lines hidden ---