Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/i40e_adminq.h
/****************************************************************************** | /****************************************************************************** | ||||
Copyright (c) 2013-2015, Intel Corporation | Copyright (c) 2013-2017, Intel Corporation | ||||
All rights reserved. | All rights reserved. | ||||
Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without | ||||
modification, are permitted provided that the following conditions are met: | modification, are permitted provided that the following conditions are met: | ||||
1. Redistributions of source code must retain the above copyright notice, | 1. Redistributions of source code must retain the above copyright notice, | ||||
this list of conditions and the following disclaimer. | this list of conditions and the following disclaimer. | ||||
▲ Show 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | static INLINE int i40e_aq_rc_to_posix(int aq_ret, int aq_rc) | ||||
if (!((u32)aq_rc < (sizeof(aq_to_posix) / sizeof((aq_to_posix)[0])))) | if (!((u32)aq_rc < (sizeof(aq_to_posix) / sizeof((aq_to_posix)[0])))) | ||||
return -ERANGE; | return -ERANGE; | ||||
return aq_to_posix[aq_rc]; | return aq_to_posix[aq_rc]; | ||||
} | } | ||||
/* general information */ | /* general information */ | ||||
#define I40E_AQ_LARGE_BUF 512 | #define I40E_AQ_LARGE_BUF 512 | ||||
#define I40E_ASQ_CMD_TIMEOUT 250 /* msecs */ | #define I40E_ASQ_CMD_TIMEOUT 250000 /* usecs */ | ||||
void i40e_fill_default_direct_cmd_desc(struct i40e_aq_desc *desc, | void i40e_fill_default_direct_cmd_desc(struct i40e_aq_desc *desc, | ||||
u16 opcode); | u16 opcode); | ||||
#endif /* _I40E_ADMINQ_H_ */ | #endif /* _I40E_ADMINQ_H_ */ |