ispvar.h (291510) | ispvar.h (291514) |
---|---|
1/* $FreeBSD: stable/10/sys/dev/isp/ispvar.h 291510 2015-11-30 21:37:22Z mav $ */ | 1/* $FreeBSD: stable/10/sys/dev/isp/ispvar.h 291514 2015-11-30 21:40:20Z mav $ */ |
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: 9 * --- 384 unchanged lines hidden (view full) --- 394 * 395 * The is_initiator is the current state of initiator on this port. 396 * 397 * Portid is obvious, as are node && port WWNs. The new_role and 398 * new_portid is for when we are pending a change. 399 */ 400 uint16_t prli_word3; /* PRLI parameters */ 401 uint16_t new_prli_word3; /* Incoming new PRLI parameters */ | 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: 9 * --- 384 unchanged lines hidden (view full) --- 394 * 395 * The is_initiator is the current state of initiator on this port. 396 * 397 * Portid is obvious, as are node && port WWNs. The new_role and 398 * new_portid is for when we are pending a change. 399 */ 400 uint16_t prli_word3; /* PRLI parameters */ 401 uint16_t new_prli_word3; /* Incoming new PRLI parameters */ |
402 uint16_t : 12, | 402 uint16_t : 11, |
403 autologin : 1, /* F/W does PLOGI/PLOGO */ | 403 autologin : 1, /* F/W does PLOGI/PLOGO */ |
404 probational : 1, |
|
404 state : 3; 405 uint32_t : 6, 406 is_target : 1, 407 is_initiator : 1, 408 portid : 24; 409 uint32_t 410 : 8, 411 new_portid : 24; 412 uint64_t node_wwn; 413 uint64_t port_wwn; 414 uint32_t gone_timer; 415} fcportdb_t; 416 | 405 state : 3; 406 uint32_t : 6, 407 is_target : 1, 408 is_initiator : 1, 409 portid : 24; 410 uint32_t 411 : 8, 412 new_portid : 24; 413 uint64_t node_wwn; 414 uint64_t port_wwn; 415 uint32_t gone_timer; 416} fcportdb_t; 417 |
417#define FC_PORTDB_STATE_NIL 0 418#define FC_PORTDB_STATE_PROBATIONAL 1 419#define FC_PORTDB_STATE_DEAD 2 420#define FC_PORTDB_STATE_CHANGED 3 421#define FC_PORTDB_STATE_NEW 4 422#define FC_PORTDB_STATE_PENDING_VALID 5 423#define FC_PORTDB_STATE_ZOMBIE 6 424#define FC_PORTDB_STATE_VALID 7 | 418#define FC_PORTDB_STATE_NIL 0 /* Empty DB slot */ 419#define FC_PORTDB_STATE_DEAD 1 /* Was valid, but no more. */ 420#define FC_PORTDB_STATE_CHANGED 2 /* Was valid, but changed. */ 421#define FC_PORTDB_STATE_NEW 3 /* Logged in, not announced. */ 422#define FC_PORTDB_STATE_ZOMBIE 4 /* Invalid, but announced. */ 423#define FC_PORTDB_STATE_VALID 5 /* Valid */ |
425 426#define FC_PORTDB_TGT(isp, bus, pdb) (int)(lp - FCPARAM(isp, bus)->portdb) 427 428/* 429 * FC card specific information 430 * 431 * This structure is replicated across multiple channels for multi-id 432 * capapble chipsets, with some entities different on a per-channel basis. --- 68 unchanged lines hidden (view full) --- 501#define LOOP_READY 8 502 503#define TOPO_NL_PORT 0 504#define TOPO_FL_PORT 1 505#define TOPO_N_PORT 2 506#define TOPO_F_PORT 3 507#define TOPO_PTP_STUB 4 508 | 424 425#define FC_PORTDB_TGT(isp, bus, pdb) (int)(lp - FCPARAM(isp, bus)->portdb) 426 427/* 428 * FC card specific information 429 * 430 * This structure is replicated across multiple channels for multi-id 431 * capapble chipsets, with some entities different on a per-channel basis. --- 68 unchanged lines hidden (view full) --- 500#define LOOP_READY 8 501 502#define TOPO_NL_PORT 0 503#define TOPO_FL_PORT 1 504#define TOPO_N_PORT 2 505#define TOPO_F_PORT 3 506#define TOPO_PTP_STUB 4 507 |
508#define TOPO_IS_FABRIC(x) ((x) == TOPO_FL_PORT || (x) == TOPO_F_PORT) 509 |
|
509/* 510 * Soft Structure per host adapter 511 */ 512struct ispsoftc { 513 /* 514 * Platform (OS) specific data 515 */ 516 struct isposinfo isp_osinfo; --- 649 unchanged lines hidden --- | 510/* 511 * Soft Structure per host adapter 512 */ 513struct ispsoftc { 514 /* 515 * Platform (OS) specific data 516 */ 517 struct isposinfo isp_osinfo; --- 649 unchanged lines hidden --- |