X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=target_firmware%2Fmagpie_fw_dev%2Ftarget%2Finc%2Fmagpie%2Fbuf_pool_api.h;h=54cdd1d845ba52ac38888bb95f9affe1438a4623;hb=799227f6d1e374f8bd0f2e657f344a918b07169d;hp=b4ff2b585832fa38bbe3195dbe5ae31dad518a81;hpb=fa01d2797b39c4365c5176cd870b40a03dfe7a35;p=open-ath9k-htc-firmware.git diff --git a/target_firmware/magpie_fw_dev/target/inc/magpie/buf_pool_api.h b/target_firmware/magpie_fw_dev/target/inc/magpie/buf_pool_api.h index b4ff2b5..54cdd1d 100755 --- a/target_firmware/magpie_fw_dev/target/inc/magpie/buf_pool_api.h +++ b/target_firmware/magpie_fw_dev/target/inc/magpie/buf_pool_api.h @@ -34,9 +34,9 @@ */ /* * @File: buf_pool_api.h - * + * * @Abstract: BUF Pool api - * + * * @Notes: */ @@ -48,11 +48,11 @@ /* endpoint defines */ typedef enum { - POOL_ID_HTC_CONTROL = 0, - POOL_ID_WMI_SVC_CMD_REPLY = 1, + POOL_ID_HTC_CONTROL = 0, + POOL_ID_WMI_SVC_CMD_REPLY = 1, POOL_ID_WMI_SVC_EVENT = 2, POOL_ID_WLAN_RX_BUF = 3, - POOL_ID_MAX = 10 + POOL_ID_MAX = 10 } BUF_POOL_ID; typedef void* pool_handle_t; @@ -60,19 +60,19 @@ typedef void* pool_handle_t; /* hardware API table structure (API descriptions below) */ struct buf_pool_api { pool_handle_t (*_init)(adf_os_handle_t handle); - + void (*_shutdown)(pool_handle_t handle); - + void (*_create_pool)(pool_handle_t handle, BUF_POOL_ID poolId, int nItems, int nSize); - + adf_nbuf_t (*_alloc_buf)(pool_handle_t handle, BUF_POOL_ID poolId, int reserve); - + adf_nbuf_t (*_alloc_buf_align)(pool_handle_t handle, BUF_POOL_ID poolId, int reserve, int align); - + void (*_free_buf)(pool_handle_t handle, BUF_POOL_ID poolId, adf_nbuf_t buf); - + /* room to expand this table by another table */ - void *pReserved; + void *pReserved; }; extern void buf_pool_module_install(struct buf_pool_api *apis);