ispvar.h (fab4c373af4f465f03ae217f491d8cf3a3eeb26d) ispvar.h (e2873b76a677769b047c86f6acbfbb58ef346c67)
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
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:

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

719 *
720 */
721#define ISP_ROLE_NONE 0x0
722#define ISP_ROLE_TARGET 0x1
723#define ISP_ROLE_INITIATOR 0x2
724#define ISP_ROLE_BOTH (ISP_ROLE_TARGET|ISP_ROLE_INITIATOR)
725#define ISP_ROLE_EITHER ISP_ROLE_BOTH
726#ifndef ISP_DEFAULT_ROLES
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 1997-2009 by Matthew Jacob
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:

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

719 *
720 */
721#define ISP_ROLE_NONE 0x0
722#define ISP_ROLE_TARGET 0x1
723#define ISP_ROLE_INITIATOR 0x2
724#define ISP_ROLE_BOTH (ISP_ROLE_TARGET|ISP_ROLE_INITIATOR)
725#define ISP_ROLE_EITHER ISP_ROLE_BOTH
726#ifndef ISP_DEFAULT_ROLES
727/*
728 * Counterintuitively, we prefer to default to role 'none'
729 * if we are enable target mode support. This gives us the
730 * maximum flexibility as to which port will do what.
731 */
732#ifdef ISP_TARGET_MODE
733#define ISP_DEFAULT_ROLES ISP_ROLE_NONE
734#else
727#define ISP_DEFAULT_ROLES ISP_ROLE_INITIATOR
728#endif
735#define ISP_DEFAULT_ROLES ISP_ROLE_INITIATOR
736#endif
737#endif
729
730
731/*
732 * Firmware related defines
733 */
734#define ISP_CODE_ORG 0x1000 /* default f/w code start */
735#define ISP_CODE_ORG_2300 0x0800 /* ..except for 2300s */
736#define ISP_CODE_ORG_2400 0x100000 /* ..and 2400s */

--- 442 unchanged lines hidden ---
738
739
740/*
741 * Firmware related defines
742 */
743#define ISP_CODE_ORG 0x1000 /* default f/w code start */
744#define ISP_CODE_ORG_2300 0x0800 /* ..except for 2300s */
745#define ISP_CODE_ORG_2400 0x100000 /* ..and 2400s */

--- 442 unchanged lines hidden ---