driver.h (6ccd93bdb989507717edb375d40534f1177822c5) driver.h (12865cac38cc9e808ce8b479f4bb12fd00bfee7c)
1/*
2 * Line 6 Linux USB driver
3 *
4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2.

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

13#define DRIVER_H
14
15#include <linux/spinlock.h>
16#include <linux/usb.h>
17#include <sound/core.h>
18
19#include "midi.h"
20
1/*
2 * Line 6 Linux USB driver
3 *
4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2.

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

13#define DRIVER_H
14
15#include <linux/spinlock.h>
16#include <linux/usb.h>
17#include <sound/core.h>
18
19#include "midi.h"
20
21#define DRIVER_NAME "line6usb"
22
23#define USB_INTERVALS_PER_SECOND 1000
24
25/* Fallback USB interval and max packet size values */
26#define LINE6_FALLBACK_INTERVAL 10
27#define LINE6_FALLBACK_MAXPACKETSIZE 16
28
29#define LINE6_TIMEOUT 1
30#define LINE6_BUFSIZE_LISTEN 32

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

163 void (*function)(unsigned long),
164 unsigned long data);
165extern int line6_version_request_async(struct usb_line6 *line6);
166extern int line6_write_data(struct usb_line6 *line6, int address, void *data,
167 size_t datalen);
168
169int line6_probe(struct usb_interface *interface,
170 const struct usb_device_id *id,
21#define USB_INTERVALS_PER_SECOND 1000
22
23/* Fallback USB interval and max packet size values */
24#define LINE6_FALLBACK_INTERVAL 10
25#define LINE6_FALLBACK_MAXPACKETSIZE 16
26
27#define LINE6_TIMEOUT 1
28#define LINE6_BUFSIZE_LISTEN 32

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

161 void (*function)(unsigned long),
162 unsigned long data);
163extern int line6_version_request_async(struct usb_line6 *line6);
164extern int line6_write_data(struct usb_line6 *line6, int address, void *data,
165 size_t datalen);
166
167int line6_probe(struct usb_interface *interface,
168 const struct usb_device_id *id,
169 const char *driver_name,
171 const struct line6_properties *properties,
172 int (*private_init)(struct usb_line6 *, const struct usb_device_id *id),
173 size_t data_size);
174
175void line6_disconnect(struct usb_interface *interface);
176
177#ifdef CONFIG_PM
178int line6_suspend(struct usb_interface *interface, pm_message_t message);
179int line6_resume(struct usb_interface *interface);
180#endif
181
182#endif
170 const struct line6_properties *properties,
171 int (*private_init)(struct usb_line6 *, const struct usb_device_id *id),
172 size_t data_size);
173
174void line6_disconnect(struct usb_interface *interface);
175
176#ifdef CONFIG_PM
177int line6_suspend(struct usb_interface *interface, pm_message_t message);
178int line6_resume(struct usb_interface *interface);
179#endif
180
181#endif