Ignore:
Timestamp:
Mar 27, 2013, 5:55:26 AM (12 years ago)
Author:
David Azarewicz
Message:

Fix spin-up / power-up issue on some hardware
Changes to debug output
Fixup makefiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.h

    r145 r148  
    157157#define DevHelp_FreeSpinLock(sph)      0
    158158
    159 #define DevHelp_AquireSpinLock(sph)    if ((sph) != 0)                \
     159#define DevHelp_AcquireSpinLock(sph)    if ((sph) != 0)                \
    160160                                         panic("recursive spinlock"); \
    161161                                       (sph) = disable()
     
    168168
    169169/* shortcut macros */
    170 #define spin_lock(sl)     DevHelp_AquireSpinLock(sl)
     170#define spin_lock(sl)     DevHelp_AcquireSpinLock(sl)
    171171#define spin_unlock(sl)   DevHelp_ReleaseSpinLock(sl)
    172172
     
    476476extern void        vfprintf      (const char *fmt, va_list va);
    477477extern void _cdecl printf        (const char *fmt, ...);
     478extern void _cdecl printf_nts    (const char *fmt, ...);
    478479extern void        cprintf       (const char *fmt, ...);
    479480extern void        phex          (const void _far *p, int len, const char *fmt, ...);
     
    500501extern void        trace_exit    (void);
    501502extern void        trace_write   (u8 _far *s, int len);
    502 extern u16         trace_read    (void _far *buf, u16 cb_buf);
    503 extern u16         trace_bytes_avail(void);
     503extern u16         trace_read    (u8 _far *buf, u16 cb_buf);
     504//NOT_USED extern u16         trace_bytes_avail(void);
    504505extern u16         trace_char_dev(RP_RWV _far *rwrb);
    505506
     
    511512extern char     *vendor_from_id (u16 vendor);
    512513extern char     *device_from_id (u16 device);
     514UCHAR pci_read_conf    (UCHAR bus, UCHAR dev_func, UCHAR indx,
     515                        UCHAR size, ULONG _far *val);
     516UCHAR pci_write_conf   (UCHAR bus, UCHAR dev_func, UCHAR indx, UCHAR size,
     517                        ULONG val);
    513518
    514519/* ctxhook.c */
Note: See TracChangeset for help on using the changeset viewer.