Deleted Added
full compact
aicvar.h (74370) aicvar.h (92370)
1/*-
2 * Copyright (c) 1999 Luoqi Chen.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/aic/aicvar.h 74370 2001-03-16 22:20:19Z ken $
26 * $FreeBSD: head/sys/dev/aic/aicvar.h 92370 2002-03-15 21:30:41Z luoqi $
27 */
28
29struct aic_transinfo {
30 u_int8_t period;
31 u_int8_t offset;
32};
33
34struct aic_tinfo {

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

61#define ccb_scb_ptr spriv_ptr0
62#define ccb_aic_ptr spriv_ptr1
63
64#define SCB_ACTIVE 0x01
65#define SCB_DISCONNECTED 0x02
66#define SCB_DEVICE_RESET 0x04
67#define SCB_SENSE 0x08
68
27 */
28
29struct aic_transinfo {
30 u_int8_t period;
31 u_int8_t offset;
32};
33
34struct aic_tinfo {

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

61#define ccb_scb_ptr spriv_ptr0
62#define ccb_aic_ptr spriv_ptr1
63
64#define SCB_ACTIVE 0x01
65#define SCB_DISCONNECTED 0x02
66#define SCB_DEVICE_RESET 0x04
67#define SCB_SENSE 0x08
68
69enum { AIC6260, AIC6360, AIC6370, GM82C700 };
70
69struct aic_softc {
70 int unit;
71 bus_space_tag_t tag;
72 bus_space_handle_t bsh;
73 bus_dma_tag_t dmat;
74
75 struct cam_sim *sim;
76 struct cam_path *path;

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

89 int msg_len;
90 char msg_buf[8];
91
92 struct aic_tinfo tinfo[8];
93 struct aic_scb scbs[256];
94
95 int min_period;
96 int max_period;
71struct aic_softc {
72 int unit;
73 bus_space_tag_t tag;
74 bus_space_handle_t bsh;
75 bus_dma_tag_t dmat;
76
77 struct cam_sim *sim;
78 struct cam_path *path;

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

91 int msg_len;
92 char msg_buf[8];
93
94 struct aic_tinfo tinfo[8];
95 struct aic_scb scbs[256];
96
97 int min_period;
98 int max_period;
99 int chip_type;
97};
98
99#define AIC_DISC_ENABLE 0x01
100#define AIC_DMA_ENABLE 0x02
101#define AIC_PARITY_ENABLE 0x04
102#define AIC_DWIO_ENABLE 0x08
103#define AIC_RESOURCE_SHORTAGE 0x10
104#define AIC_DROP_MSGIN 0x20

--- 52 unchanged lines hidden ---
100};
101
102#define AIC_DISC_ENABLE 0x01
103#define AIC_DMA_ENABLE 0x02
104#define AIC_PARITY_ENABLE 0x04
105#define AIC_DWIO_ENABLE 0x08
106#define AIC_RESOURCE_SHORTAGE 0x10
107#define AIC_DROP_MSGIN 0x20

--- 52 unchanged lines hidden ---