ispreg.h (290785) | ispreg.h (291500) |
---|---|
1/* $FreeBSD: stable/10/sys/dev/isp/ispreg.h 290785 2015-11-13 19:42:55Z mav $ */ | 1/* $FreeBSD: stable/10/sys/dev/isp/ispreg.h 291500 2015-11-30 21:30:18Z 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 * --- 438 unchanged lines hidden (view full) --- 448/* if timeout == 0, then default timeout is picked */ 449#define MBCMD_DEFAULT_TIMEOUT 100000 /* 100 ms */ 450typedef struct { 451 uint16_t param[MAX_MAILBOX]; 452 uint32_t ibits; /* bits to add for register copyin */ 453 uint32_t obits; /* bits to add for register copyout */ 454 uint32_t ibitm; /* bits to mask for register copyin */ 455 uint32_t obitm; /* bits to mask for register copyout */ | 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 * --- 438 unchanged lines hidden (view full) --- 448/* if timeout == 0, then default timeout is picked */ 449#define MBCMD_DEFAULT_TIMEOUT 100000 /* 100 ms */ 450typedef struct { 451 uint16_t param[MAX_MAILBOX]; 452 uint32_t ibits; /* bits to add for register copyin */ 453 uint32_t obits; /* bits to add for register copyout */ 454 uint32_t ibitm; /* bits to mask for register copyin */ 455 uint32_t obitm; /* bits to mask for register copyout */ |
456 uint32_t 457 lineno : 16, 458 : 12, 459 logval : 4; | 456 uint32_t logval; /* Bitmask of status codes to log */ |
460 uint32_t timeout; | 457 uint32_t timeout; |
458 uint32_t lineno; |
|
461 const char *func; 462} mbreg_t; 463#define MBSINIT(mbxp, code, loglev, timo) \ 464 ISP_MEMZERO((mbxp), sizeof (mbreg_t)); \ 465 (mbxp)->ibitm = ~0; \ 466 (mbxp)->obitm = ~0; \ 467 (mbxp)->param[0] = code; \ 468 (mbxp)->lineno = __LINE__; \ --- 709 unchanged lines hidden --- | 459 const char *func; 460} mbreg_t; 461#define MBSINIT(mbxp, code, loglev, timo) \ 462 ISP_MEMZERO((mbxp), sizeof (mbreg_t)); \ 463 (mbxp)->ibitm = ~0; \ 464 (mbxp)->obitm = ~0; \ 465 (mbxp)->param[0] = code; \ 466 (mbxp)->lineno = __LINE__; \ --- 709 unchanged lines hidden --- |