Changeset 77 for trunk/src/os2ahci/os2ahci.h
- Timestamp:
- Feb 22, 2011, 2:25:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/os2ahci.h
r76 r77 115 115 /* ctype macros */ 116 116 #define isupper(ch) ((ch) >= 'A' && (ch) <= 'Z') 117 #define tolower(ch) (isupper(ch) ? (ch) -('a' - 'A') : (ch))117 #define tolower(ch) (isupper(ch) ? (ch) + ('a' - 'A') : (ch)) 118 118 119 119 /* stddef macros */ … … 192 192 #define add_workspace(iorb) ((ADD_WORKSPACE _far *) &(iorb)->ADDWorkSpace) 193 193 194 /* free resources in ADD workspace (timer, buffer, ...) */195 #define aws_free(aws) if ((aws)->timer != 0) { \196 ADD_CancelTimer((aws)->timer); \197 (aws)->timer = 0; \198 } \199 if ((aws)->buf != NULL) { \200 free((aws)->buf); \201 (aws)->buf = NULL; \202 }203 204 /* complete IORB */205 #define complete_iorb(iorb) (iorb)->Status |= IORB_DONE; \206 dprintf("IORB %Fp complete " \207 "(status = 0x%04x, error = 0x%04x)\n", \208 (iorb), (iorb)->Status, \209 (iorb)->ErrorCode); \210 if ((iorb)->RequestControl & IORB_ASYNC_POST) { \211 (iorb)->NotifyAddress(iorb); \212 }213 194 214 195 … … 264 245 #define ANSI_CLR_WHITE "\x1b[37m" 265 246 #define ANSI_RESET "\x1b[0m" 266 267 247 268 248 /* ------------------------ typedefs and structures ------------------------ */ … … 397 377 extern void iorb_seterr (IORBH _far *iorb, USHORT error_code); 398 378 extern void iorb_done (IORBH _far *iorb); 379 extern void iorb_complete (IORBH _far *iorb); 399 380 extern void iorb_requeue (IORBH _far *iorb); 381 extern void aws_free (ADD_WORKSPACE _far *aws); 400 382 extern void lock_adapter (AD_INFO *ai); 401 383 extern void unlock_adapter (AD_INFO *ai); … … 443 425 444 426 /* libc.c */ 445 extern void init_com1 (void); 427 extern void init_libc (void); 428 extern void init_com (void); 446 429 extern int vsprintf (char _far *buf, const char *fmt, va_list va); 447 430 extern int sprintf (char _far *buf, const char *fmt, ...); … … 523 506 524 507 /* apapter/port-specific options saved when parsing the command line */ 508 extern u8 emulate_scsi[MAX_AD][AHCI_MAX_PORTS]; 509 extern u8 disable_ncq[MAX_AD][AHCI_MAX_PORTS]; 525 510 extern u8 link_speed[MAX_AD][AHCI_MAX_PORTS]; 526 extern u8 disable_ncq[MAX_AD][AHCI_MAX_PORTS];527 511 extern u8 link_power[MAX_AD][AHCI_MAX_PORTS]; 512
Note:
See TracChangeset
for help on using the changeset viewer.