x86_init.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. */
  15. struct x86_init_mpparse {
  16. void (*mpc_record)(unsigned int mode);
  17. void (*setup_ioapic_ids)(void);
  18. int (*mpc_apic_id)(struct mpc_cpu *m);
  19. void (*smp_read_mpc_oem)(struct mpc_table *mpc);
  20. void (*mpc_oem_pci_bus)(struct mpc_bus *m);
  21. void (*mpc_oem_bus_info)(struct mpc_bus *m, char *name);
  22. };
  23. /**
  24. * struct x86_init_resources - platform specific resource related ops
  25. * @probe_roms: probe BIOS roms
  26. * @reserve_resources: reserve the standard resources for the
  27. * platform
  28. * @reserve_ebda_region: reserve the extended bios data area
  29. * @memory_setup: platform specific memory setup
  30. *
  31. */
  32. struct x86_init_resources {
  33. void (*probe_roms)(void);
  34. void (*reserve_resources)(void);
  35. void (*reserve_ebda_region)(void);
  36. char *(*memory_setup)(void);
  37. };
  38. /**
  39. * struct x86_init_ops - functions for platform specific setup
  40. *
  41. */
  42. struct x86_init_ops {
  43. struct x86_init_resources resources;
  44. struct x86_init_mpparse mpparse;
  45. };
  46. extern struct x86_init_ops x86_init;
  47. extern void x86_init_noop(void);
  48. extern void x86_init_uint_noop(unsigned int unused);
  49. #endif