Rev 5270 | Rev 6934 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5270 | Rev 6082 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _ASM_X86_PLATFORM_H |
1 | #ifndef _ASM_X86_PLATFORM_H |
2 | #define _ASM_X86_PLATFORM_H |
2 | #define _ASM_X86_PLATFORM_H |
Line 3... | Line -... | ||
3 | - | ||
4 | #include |
3 | |
Line 5... | Line 4... | ||
5 | //#include |
4 | //#include |
6 | 5 | ||
7 | struct mpc_bus; |
6 | struct mpc_bus; |
Line 169... | Line 168... | ||
169 | void (*restore_sched_clock_state)(void); |
168 | void (*restore_sched_clock_state)(void); |
170 | void (*apic_post_init)(void); |
169 | void (*apic_post_init)(void); |
171 | }; |
170 | }; |
Line 172... | Line 171... | ||
172 | 171 | ||
173 | struct pci_dev; |
- | |
Line 174... | Line 172... | ||
174 | struct msi_msg; |
172 | struct pci_dev; |
175 | 173 | ||
176 | struct x86_msi_ops { |
- | |
177 | int (*setup_msi_irqs)(struct pci_dev *dev, int nvec, int type); |
- | |
178 | void (*compose_msi_msg)(struct pci_dev *dev, unsigned int irq, |
- | |
179 | unsigned int dest, struct msi_msg *msg, |
174 | struct x86_msi_ops { |
180 | u8 hpet_id); |
175 | int (*setup_msi_irqs)(struct pci_dev *dev, int nvec, int type); |
181 | void (*teardown_msi_irq)(unsigned int irq); |
176 | void (*teardown_msi_irq)(unsigned int irq); |
182 | void (*teardown_msi_irqs)(struct pci_dev *dev); |
- | |
183 | void (*restore_msi_irqs)(struct pci_dev *dev); |
177 | void (*teardown_msi_irqs)(struct pci_dev *dev); |
Line 184... | Line -... | ||
184 | int (*setup_hpet_msi)(unsigned int irq, unsigned int id); |
- | |
185 | }; |
- | |
186 | - | ||
187 | struct IO_APIC_route_entry; |
- | |
188 | struct io_apic_irq_attr; |
- | |
189 | struct irq_data; |
178 | void (*restore_msi_irqs)(struct pci_dev *dev); |
190 | struct cpumask; |
- | |
191 | 179 | }; |
|
192 | struct x86_io_apic_ops { |
- | |
193 | void (*init) (void); |
- | |
194 | unsigned int (*read) (unsigned int apic, unsigned int reg); |
180 | |
195 | void (*write) (unsigned int apic, unsigned int reg, unsigned int value); |
- | |
196 | void (*modify) (unsigned int apic, unsigned int reg, unsigned int value); |
- | |
197 | void (*disable)(void); |
- | |
198 | void (*print_entries)(unsigned int apic, unsigned int nr_entries); |
- | |
199 | int (*set_affinity)(struct irq_data *data, |
- | |
200 | const struct cpumask *mask, |
- | |
201 | bool force); |
- | |
202 | int (*setup_entry)(int irq, struct IO_APIC_route_entry *entry, |
- | |
203 | unsigned int destination, int vector, |
181 | struct x86_io_apic_ops { |
Line 204... | Line 182... | ||
204 | struct io_apic_irq_attr *attr); |
182 | unsigned int (*read) (unsigned int apic, unsigned int reg); |
205 | void (*eoi_ioapic_pin)(int apic, int pin, int vector); |
183 | void (*disable)(void); |
206 | }; |
184 | }; |