Deleted Added
full compact
twevar.h (87599) twevar.h (91790)
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 87599 2001-12-10 08:09:49Z obrien $
27 * $FreeBSD: head/sys/dev/twe/twevar.h 91790 2002-03-07 09:55:41Z msmith $
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) \

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

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 */
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) \

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

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 */
148extern void twe_clear_pci_parity_error(struct twe_softc *sc);
149extern void twe_clear_pci_abort(struct twe_softc *sc);
148extern void twed_intr(twe_bio *bp); /* return bio from core */
149extern struct twe_request *twe_allocate_request(struct twe_softc *sc); /* allocate request structure */
150extern void twe_free_request(struct twe_request *tr); /* free request structure */
151extern void twe_map_request(struct twe_request *tr); /* make request visible to controller, do s/g */
152extern void twe_unmap_request(struct twe_request *tr); /* cleanup after transfer, unmap */
153
154/********************************************************************************
155 * Queue primitives

--- 111 unchanged lines hidden ---
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
156/********************************************************************************
157 * Queue primitives

--- 111 unchanged lines hidden ---