| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2007, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bfile_async.h $ |
|---|
| 11 | * $brcm_Revision: 1 $ |
|---|
| 12 | * $brcm_Date: 6/26/07 2:39p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Single thread asynchronous I/O |
|---|
| 17 | * |
|---|
| 18 | * Revision History: |
|---|
| 19 | * |
|---|
| 20 | * $brcm_Log: /BSEAV/lib/bfile/bfile_async.h $ |
|---|
| 21 | * |
|---|
| 22 | * 1 6/26/07 2:39p vsilyaev |
|---|
| 23 | * PR 31887: single thread asynchronous I/O |
|---|
| 24 | * |
|---|
| 25 | *******************************************************************************/ |
|---|
| 26 | #ifndef _BFILE_ASYNC_H__ |
|---|
| 27 | #define _BFILE_ASYNC_H__ |
|---|
| 28 | |
|---|
| 29 | #include "bfile_io.h" |
|---|
| 30 | |
|---|
| 31 | #ifdef __cplusplus |
|---|
| 32 | extern "C" |
|---|
| 33 | { |
|---|
| 34 | #endif |
|---|
| 35 | |
|---|
| 36 | void bfile_async_init(void); |
|---|
| 37 | void bfile_async_shutdown(void); |
|---|
| 38 | void bfile_async_write(void *sync_cnxt, bfile_io_write_t fd, const void *buf, size_t length, void (*cont)(void *, ssize_t ), void *cntx); |
|---|
| 39 | void bfile_async_read(void *sync_cnxt, bfile_io_read_t fd, void *buf, size_t length, void (*cont)(void *, ssize_t ), void *cntx); |
|---|
| 40 | void bfile_async_process(void); |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | #ifdef __cplusplus |
|---|
| 44 | } |
|---|
| 45 | #endif |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | #endif /* _BFILE_ASYNC_H__ */ |
|---|
| 49 | |
|---|
| 50 | |
|---|