Deleted Added
full compact
aha.c (41335) aha.c (41514)
1/*
2 * Generic register and struct definitions for the Adaptech 154x/164x
3 * SCSI host adapters. Product specific probe and attach routines can
4 * be found in:
5 * aha 1540/1542B/1542C/1542CF/1542CP aha_isa.c
6 *
7 * Copyright (c) 1998 M. Warner Losh.
8 * All Rights Reserved.

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

50 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
51 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
52 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
54 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
56 * SUCH DAMAGE.
57 *
1/*
2 * Generic register and struct definitions for the Adaptech 154x/164x
3 * SCSI host adapters. Product specific probe and attach routines can
4 * be found in:
5 * aha 1540/1542B/1542C/1542CF/1542CP aha_isa.c
6 *
7 * Copyright (c) 1998 M. Warner Losh.
8 * All Rights Reserved.

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

50 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
51 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
52 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
53 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
54 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
55 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
56 * SUCH DAMAGE.
57 *
58 * $Id: aha.c,v 1.12 1998/11/10 06:47:09 gibbs Exp $
58 * $Id: aha.c,v 1.13 1998/11/25 19:12:56 imp Exp $
59 */
60
61#include <sys/param.h>
62#include <sys/systm.h>
63#include <sys/malloc.h>
64#include <sys/buf.h>
65#include <sys/kernel.h>
66#include <sys/sysctl.h>

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

383 setup_data_t setup_info;
384 config_data_t config_data;
385 u_int8_t length_param;
386 int error;
387 struct aha_extbios extbios;
388
389 switch (aha->boardid) {
390 case BOARD_1540_16HEAD_BIOS:
59 */
60
61#include <sys/param.h>
62#include <sys/systm.h>
63#include <sys/malloc.h>
64#include <sys/buf.h>
65#include <sys/kernel.h>
66#include <sys/sysctl.h>

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

383 setup_data_t setup_info;
384 config_data_t config_data;
385 u_int8_t length_param;
386 int error;
387 struct aha_extbios extbios;
388
389 switch (aha->boardid) {
390 case BOARD_1540_16HEAD_BIOS:
391 strcpy(aha->model, "1540 16 head BIOS");
391 snprintf(aha->model, sizeof(aha->model), "1540 16 head BIOS");
392 break;
393 case BOARD_1540_64HEAD_BIOS:
392 break;
393 case BOARD_1540_64HEAD_BIOS:
394 strcpy(aha->model, "1540 64 head BIOS");
394 snprintf(aha->model, sizeof(aha->model), "1540 64 head BIOS");
395 break;
396 case BOARD_1542:
395 break;
396 case BOARD_1542:
397 strcpy(aha->model, "1540/1542 64 head BIOS");
397 snprintf(aha->model, sizeof(aha->model), "1540/1542 64 head BIOS");
398 break;
399 case BOARD_1640:
398 break;
399 case BOARD_1640:
400 strcpy(aha->model, "1640");
400 snprintf(aha->model, sizeof(aha->model), "1640");
401 break;
402 case BOARD_1740:
401 break;
402 case BOARD_1740:
403 strcpy(aha->model, "1740A/1742A/1744");
403 snprintf(aha->model, sizeof(aha->model), "1740A/1742A/1744");
404 break;
405 case BOARD_1542C:
404 break;
405 case BOARD_1542C:
406 strcpy(aha->model, "1542C");
406 snprintf(aha->model, sizeof(aha->model), "1542C");
407 break;
408 case BOARD_1542CF:
407 break;
408 case BOARD_1542CF:
409 strcpy(aha->model, "1542CF");
409 snprintf(aha->model, sizeof(aha->model), "1542CF");
410 break;
411 case BOARD_1542CP:
410 break;
411 case BOARD_1542CP:
412 strcpy(aha->model, "1542CP");
412 snprintf(aha->model, sizeof(aha->model), "1542CP");
413 break;
414 default:
413 break;
414 default:
415 strcpy(aha->model, "Unknown");
415 snprintf(aha->model, sizeof(aha->model), "Unknown");
416 break;
417 }
418 /*
419 * If we are a new type of 1542 board (anything newer than a 1542C)
420 * then disable the extended bios so that the
421 * mailbox interface is unlocked.
422 * This is also true for the 1542B Version 3.20. First Adaptec
423 * board that supports >1Gb drives.

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

658 return (0);
659}
660
661char *
662aha_name(struct aha_softc *aha)
663{
664 static char name[10];
665
416 break;
417 }
418 /*
419 * If we are a new type of 1542 board (anything newer than a 1542C)
420 * then disable the extended bios so that the
421 * mailbox interface is unlocked.
422 * This is also true for the 1542B Version 3.20. First Adaptec
423 * board that supports >1Gb drives.

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

658 return (0);
659}
660
661char *
662aha_name(struct aha_softc *aha)
663{
664 static char name[10];
665
666 sprintf(name, "aha%d", aha->unit);
666 snprintf(name, sizeof(name), "aha%d", aha->unit);
667 return (name);
668}
669
670int
671aha_check_probed_iop(u_int ioport)
672{
673 u_int i;
674

--- 1233 unchanged lines hidden ---
667 return (name);
668}
669
670int
671aha_check_probed_iop(u_int ioport)
672{
673 u_int i;
674

--- 1233 unchanged lines hidden ---