ispvar.h (98281) | ispvar.h (102012) |
---|---|
1/* $FreeBSD: head/sys/dev/isp/ispvar.h 98281 2002-06-16 04:52:53Z mjacob $ */ | 1/* $FreeBSD: head/sys/dev/isp/ispvar.h 102012 2002-08-17 17:19:09Z mjacob $ */ |
2/* 3 * Soft Definitions for for Qlogic ISP SCSI adapters. 4 * 5 * Copyright (c) 1997, 1998, 1999, 2000 by Matthew Jacob 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 492 unchanged lines hidden (view full) --- 502#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic) 503#define ISP_FW_MAJOR(code) ((code >> 24) & 0xff) 504#define ISP_FW_MINOR(code) ((code >> 16) & 0xff) 505#define ISP_FW_MICRO(code) ((code >> 8) & 0xff) 506#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2]) 507#define ISP_FW_MAJORX(xp) (xp[0]) 508#define ISP_FW_MINORX(xp) (xp[1]) 509#define ISP_FW_MICROX(xp) (xp[2]) | 2/* 3 * Soft Definitions for for Qlogic ISP SCSI adapters. 4 * 5 * Copyright (c) 1997, 1998, 1999, 2000 by Matthew Jacob 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 492 unchanged lines hidden (view full) --- 502#define ISP_FW_REV(maj, min, mic) ((maj << 24) | (min << 16) | mic) 503#define ISP_FW_MAJOR(code) ((code >> 24) & 0xff) 504#define ISP_FW_MINOR(code) ((code >> 16) & 0xff) 505#define ISP_FW_MICRO(code) ((code >> 8) & 0xff) 506#define ISP_FW_REVX(xp) ((xp[0]<<24) | (xp[1] << 16) | xp[2]) 507#define ISP_FW_MAJORX(xp) (xp[0]) 508#define ISP_FW_MINORX(xp) (xp[1]) 509#define ISP_FW_MICROX(xp) (xp[2]) |
510#define ISP_FW_NEWER_THAN(i, major, minor, micro) \ 511 (ISP_FW_REVX((i)->isp_fwrev) > ISP_FW_REV(major, minor, micro)) |
|
510 511/* 512 * Bus (implementation) types 513 */ 514#define ISP_BT_PCI 0 /* PCI Implementations */ 515#define ISP_BT_SBUS 1 /* SBus Implementations */ 516 517/* --- 205 unchanged lines hidden (view full) --- 723 ISPASYNC_FABRIC_DEV, /* FC Fabric Device Arrival */ 724 ISPASYNC_PROMENADE, /* FC Objects coming && going */ 725 ISPASYNC_TARGET_MESSAGE, /* target message */ 726 ISPASYNC_TARGET_EVENT, /* target asynchronous event */ 727 ISPASYNC_TARGET_ACTION, /* other target command action */ 728 ISPASYNC_CONF_CHANGE, /* Platform Configuration Change */ 729 ISPASYNC_UNHANDLED_RESPONSE, /* Unhandled Response Entry */ 730 ISPASYNC_FW_CRASH, /* Firmware has crashed */ | 512 513/* 514 * Bus (implementation) types 515 */ 516#define ISP_BT_PCI 0 /* PCI Implementations */ 517#define ISP_BT_SBUS 1 /* SBus Implementations */ 518 519/* --- 205 unchanged lines hidden (view full) --- 725 ISPASYNC_FABRIC_DEV, /* FC Fabric Device Arrival */ 726 ISPASYNC_PROMENADE, /* FC Objects coming && going */ 727 ISPASYNC_TARGET_MESSAGE, /* target message */ 728 ISPASYNC_TARGET_EVENT, /* target asynchronous event */ 729 ISPASYNC_TARGET_ACTION, /* other target command action */ 730 ISPASYNC_CONF_CHANGE, /* Platform Configuration Change */ 731 ISPASYNC_UNHANDLED_RESPONSE, /* Unhandled Response Entry */ 732 ISPASYNC_FW_CRASH, /* Firmware has crashed */ |
733 ISPASYNC_FW_DUMPED, /* Firmware crashdump taken */ |
|
731 ISPASYNC_FW_RESTARTED /* Firmware has been restarted */ 732} ispasync_t; 733int isp_async(struct ispsoftc *, ispasync_t, void *); 734 735#define ISPASYNC_CHANGE_PDB ((void *) 0) 736#define ISPASYNC_CHANGE_SNS ((void *) 1) 737#define ISPASYNC_CHANGE_OTHER ((void *) 2) 738 --- 152 unchanged lines hidden --- | 734 ISPASYNC_FW_RESTARTED /* Firmware has been restarted */ 735} ispasync_t; 736int isp_async(struct ispsoftc *, ispasync_t, void *); 737 738#define ISPASYNC_CHANGE_PDB ((void *) 0) 739#define ISPASYNC_CHANGE_SNS ((void *) 1) 740#define ISPASYNC_CHANGE_OTHER ((void *) 2) 741 --- 152 unchanged lines hidden --- |