Deleted Added
full compact
twevar.h (91790) twevar.h (118508)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/twe/twevar.h 91790 2002-03-07 09:55:41Z msmith $
27 * $FreeBSD: head/sys/dev/twe/twevar.h 118508 2003-08-05 19:55:21Z ps $
28 */
29
30#ifdef TWE_DEBUG
31#define debug(level, fmt, args...) \
32 do { \
33 if (level <= TWE_DEBUG) printf("%s: " fmt "\n", __func__ , ##args); \
34 } while(0)
35#define debug_called(level) \

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

139extern int twe_ioctl(struct twe_softc *sc, int cmd,
140 void *addr); /* handle user request */
141extern void twe_describe_controller(struct twe_softc *sc); /* print controller info */
142extern void twe_print_controller(struct twe_softc *sc);
143extern void twe_enable_interrupts(struct twe_softc *sc); /* enable controller interrupts */
144extern void twe_disable_interrupts(struct twe_softc *sc); /* disable controller interrupts */
145
146extern void twe_attach_drive(struct twe_softc *sc,
28 */
29
30#ifdef TWE_DEBUG
31#define debug(level, fmt, args...) \
32 do { \
33 if (level <= TWE_DEBUG) printf("%s: " fmt "\n", __func__ , ##args); \
34 } while(0)
35#define debug_called(level) \

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

139extern int twe_ioctl(struct twe_softc *sc, int cmd,
140 void *addr); /* handle user request */
141extern void twe_describe_controller(struct twe_softc *sc); /* print controller info */
142extern void twe_print_controller(struct twe_softc *sc);
143extern void twe_enable_interrupts(struct twe_softc *sc); /* enable controller interrupts */
144extern void twe_disable_interrupts(struct twe_softc *sc); /* disable controller interrupts */
145
146extern void twe_attach_drive(struct twe_softc *sc,
147 struct twe_drive *dr); /* attach drive when found in twe_init */
147 struct twe_drive *dr); /* attach drive when found in twe_add_unit */
148extern void twe_detach_drive(struct twe_softc *sc,
149 int unit); /* detach drive */
148extern void twe_clear_pci_parity_error(struct twe_softc *sc);
149extern void twe_clear_pci_abort(struct twe_softc *sc);
150extern void twed_intr(twe_bio *bp); /* return bio from core */
151extern struct twe_request *twe_allocate_request(struct twe_softc *sc); /* allocate request structure */
152extern void twe_free_request(struct twe_request *tr); /* free request structure */
153extern void twe_map_request(struct twe_request *tr); /* make request visible to controller, do s/g */
154extern void twe_unmap_request(struct twe_request *tr); /* cleanup after transfer, unmap */
155

--- 113 unchanged lines hidden ---
150extern void twe_clear_pci_parity_error(struct twe_softc *sc);
151extern void twe_clear_pci_abort(struct twe_softc *sc);
152extern void twed_intr(twe_bio *bp); /* return bio from core */
153extern struct twe_request *twe_allocate_request(struct twe_softc *sc); /* allocate request structure */
154extern void twe_free_request(struct twe_request *tr); /* free request structure */
155extern void twe_map_request(struct twe_request *tr); /* make request visible to controller, do s/g */
156extern void twe_unmap_request(struct twe_request *tr); /* cleanup after transfer, unmap */
157

--- 113 unchanged lines hidden ---