Changeset 110 for trunk/src/os2ahci/os2ahci.h
- Timestamp:
- Jun 21, 2011, 2:39:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.h
r108 r110 281 281 typedef struct { 282 282 IORB_QUEUE iorb_queue; /* IORB queue for this port */ 283 unsigned dev_max : 4;/* maximum device number on this port (0-15) */284 unsigned cmd_slot : 5;/* current command slot index (using round-283 unsigned dev_max : 4; /* maximum device number on this port (0-15) */ 284 unsigned cmd_slot : 5; /* current command slot index (using round- 285 285 * robin indexes to prevent starvation) */ 286 286 … … 349 349 unsigned is_ncq : 1; /* should use native command queueing */ 350 350 unsigned complete : 1; /* IORB has completed processing */ 351 unsigned unaligned : 1; /* unaligned S/G; need to use transfer buffer */ 351 352 unsigned cmd_slot : 5; /* AHCI command slot for this IORB */ 352 353 } ADD_WORKSPACE; 354 355 /* sg_memcpy() direction */ 356 typedef enum { 357 SG_TO_BUF, /* copy from S/G list to buffer */ 358 BUF_TO_SG /* copy from buffer to S/G list */ 359 } SG_MEMCPY_DIRECTION; 353 360 354 361 /* -------------------------- function prototypes -------------------------- */ … … 444 451 extern char _far *strcpy (char _far *dst, const char _far *src); 445 452 extern int memcmp (void _far *p1, void _far *p2, size_t len); 453 extern void sg_memcpy (SCATGATENTRY _far *sg_list, USHORT sg_cnt, 454 ULONG sg_off, void _far *buf, USHORT len, 455 SG_MEMCPY_DIRECTION dir); 446 456 extern long strtol (const char _far *buf, 447 457 const char _far * _far *ep, int base); 448 458 extern void *malloc (size_t len); 449 459 extern void free (void *ptr); 460 extern ULONG virt_to_phys (void _far *ptr); 450 461 extern void mdelay_cal (void); 451 462 extern void mdelay (u32 millies);
Note:
See TracChangeset
for help on using the changeset viewer.