diff options
Diffstat (limited to 'sys/dev/cxgb/common/cxgb_common.h')
-rw-r--r-- | sys/dev/cxgb/common/cxgb_common.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/dev/cxgb/common/cxgb_common.h b/sys/dev/cxgb/common/cxgb_common.h index ae73bff..1a04772 100644 --- a/sys/dev/cxgb/common/cxgb_common.h +++ b/sys/dev/cxgb/common/cxgb_common.h @@ -9,11 +9,7 @@ modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - 3. Neither the name of the Chelsio Corporation nor the names of its + 2. Neither the name of the Chelsio Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. @@ -35,7 +31,11 @@ $FreeBSD$ #ifndef __CHELSIO_COMMON_H #define __CHELSIO_COMMON_H +#ifdef CONFIG_DEFINED +#include <cxgb_osdep.h> +#else #include <dev/cxgb/cxgb_osdep.h> +#endif enum { MAX_NPORTS = 2, /* max # of ports */ @@ -538,7 +538,11 @@ struct addr_val_pair { unsigned int val; }; +#ifdef CONFIG_DEFINED +#include <cxgb_adapter.h> +#else #include <dev/cxgb/cxgb_adapter.h> +#endif #ifndef PCI_VENDOR_ID_CHELSIO # define PCI_VENDOR_ID_CHELSIO 0x1425 |