x86_init.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef _ASM_X86_PLATFORM_H
  2. #define _ASM_X86_PLATFORM_H
  3. struct mpc_bus;
  4. struct mpc_cpu;
  5. struct mpc_table;
  6. /**
  7. * struct x86_init_mpparse - platform specific mpparse ops
  8. * @mpc_record: platform specific mpc record accounting
  9. * @setup_ioapic_ids: platform specific ioapic id override
  10. * @mpc_apic_id: platform specific mpc apic id assignment
  11. * @smp_read_mpc_oem: platform specific oem mpc table setup
  12. * @mpc_oem_pci_bus: platform specific pci bus setup (default NULL)
  13. * @mpc_oem_bus_info: platform specific mpc bus info
  14. * @find_smp_config: find the smp configuration
  15. * @get_smp_config: get the smp configuration
  16. */
  17. struct x86_init_mpparse {
  18. void (*mpc_record)(unsigned int mode);
  19. void (*setup_ioapic_ids)(void);
  20. int (*mpc_apic_id)(struct mpc_cpu *m);
  21. void (*smp_read_mpc_oem)(struct mpc_table *mpc);
  22. void (*mpc_oem_pci_bus)(struct mpc_bus *m);
  23. void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name);
  24. void (*find_smp_config)(unsigned int reserve);
  25. void (*get_smp_config)(unsigned int early);
  26. };
  27. /**
  28. * struct x86_init_resources - platform specific resource related ops
  29. * @probe_roms: probe BIOS roms
  30. * @reserve_resources: reserve the standard resources for the
  31. * platform
  32. * @reserve_ebda_region: reserve the extended bios data area
  33. * @memory_setup: platform specific memory setup
  34. *
  35. */
  36. struct x86_init_resources {
  37. void (*probe_roms)(void);
  38. void (*reserve_resources)(void);
  39. void (*reserve_ebda_region)(void);
  40. char *(*memory_setup)(void);
  41. };
  42. /**
  43. * struct x86_init_irqs - platform specific interrupt setup
  44. * @pre_vector_init: init code to run before interrupt vectors
  45. * are set up.
  46. * @intr_init: interrupt init code
  47. */
  48. struct x86_init_irqs {
  49. void (*pre_vector_init)(void);
  50. void (*intr_init)(void);
  51. };
  52. /**
  53. * struct x86_init_ops - functions for platform specific setup
  54. *
  55. */
  56. struct x86_init_ops {
  57. struct x86_init_resources resources;
  58. struct x86_init_mpparse mpparse;
  59. struct x86_init_irqs irqs;
  60. };
  61. extern struct x86_init_ops x86_init;
  62. extern void x86_init_noop(void);
  63. extern void x86_init_uint_noop(unsigned int unused);
  64. #endif