You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sal.h 857B

1234567891011121314151617181920212223242526272829
  1. #ifndef IA64_SAL_H
  2. #define IA64_SAL_H
  3. struct fptr {
  4. unsigned long entry;
  5. unsigned long gp;
  6. };
  7. extern struct fptr sal_entry;
  8. extern struct fptr pal_entry;
  9. extern int parse_sal_system_table(void *table);
  10. #define SAL_FREQ_BASE_PLATFORM 0
  11. #define SAL_FREQ_BASE_INTERVAL_TIMER 1
  12. #define SAL_FREQ_BASE_REALTIME_CLOCK 2
  13. long sal_freq_base (unsigned long which, unsigned long *ticks_per_second,
  14. unsigned long *drift_info);
  15. #define PCI_SAL_ADDRESS(seg, bus, dev, fn, reg) \
  16. ((unsigned long)(seg << 24) | (unsigned long)(bus << 16) | \
  17. (unsigned long)(dev << 11) | (unsigned long)(fn << 8) | \
  18. (unsigned long)(reg))
  19. long sal_pci_config_read (
  20. unsigned long pci_config_addr, unsigned long size, unsigned long *value);
  21. long sal_pci_config_write (
  22. unsigned long pci_config_addr, unsigned long size, unsigned long value);
  23. #endif /* IA64_SAL_H */