root / Whitix / branches / network / include / request.h
| Revision 1, 1.3 kB (checked in by mtw07, 11 months ago) |
|---|
| Line | |
|---|---|
| 1 | /* This file is part of Whitix. |
| 2 | * |
| 3 | * Whitix is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation; either version 2 of the License, or |
| 6 | * (at your option) any later version. |
| 7 | * |
| 8 | * Whitix is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with Whitix; if not, write to the Free Software |
| 15 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #ifndef REQUEST_H |
| 20 | #define REQUEST_H |
| 21 | |
| 22 | #include <llist.h> |
| 23 | #include <typedefs.h> |
| 24 | #include <sdevice.h> |
| 25 | #include <wait.h> |
| 26 | #include <fs/vfs.h> |
| 27 | |
| 28 | struct Request* StorageBuildRequest(struct Buffer* buffer,int type); |
| 29 | |
| 30 | #define REQUEST_READ 1 |
| 31 | #define REQUEST_WRITE 2 |
| 32 | |
| 33 | struct Buffer; |
| 34 | |
| 35 | struct Request |
| 36 | { |
| 37 | int type,numSectors,retries; |
| 38 | volatile BYTE* data; |
| 39 | int dataLength; |
| 40 | DWORD sector; |
| 41 | struct Buffer* buffer; |
| 42 | struct ListHead list; /* For per-device lists */ |
| 43 | int ioStatus; /* -1 for complete, 0 for in progress and positive error codes */ |
| 44 | }; |
| 45 | |
| 46 | #endif |
Note: See TracBrowser
for help on using the browser.