2 * This file is part of the coreboot project.
4 * Copyright (C) 2008-2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 /* AMD64 SMM State-Save Area
115 } __attribute__((packed)) amd64_smm_state_save_area_t;
118 /* Intel Core 2 (EM64T) SMM State-Save Area
148 u16 autohalt_restart;
193 } __attribute__((packed)) em64t_smm_state_save_area_t;
196 /* Legacy x86 SMM State-Save Area
205 u16 autohalt_restart;
233 } __attribute__((packed)) legacy_smm_state_save_area_t;
243 save_state_type_t type;
245 amd64_smm_state_save_area_t *amd64_state_save;
246 em64t_smm_state_save_area_t *em64t_state_save;
247 legacy_smm_state_save_area_t *legacy_state_save;
249 } smm_state_save_area_t;
252 /* SMI handler function prototypes */
253 void io_trap_handler(int smif);
254 int southbridge_io_trap_handler(int smif);
255 int mainboard_io_trap_handler(int smif);
257 void southbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_save);