| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the flashrom project. | 2 * This file is part of the flashrom project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2009 Carl-Daniel Hailfinger | 4 * Copyright (C) 2009 Carl-Daniel Hailfinger |
| 5 * | 5 * |
| 6 * This program is free software; you can redistribute it and/or modify | 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 | 7 * it under the terms of the GNU General Public License as published by |
| 8 * the Free Software Foundation; either version 2 of the License, or | 8 * the Free Software Foundation; either version 2 of the License, or |
| 9 * (at your option) any later version. | 9 * (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 "access yet.\n" | 368 "access yet.\n" |
| 369 "Aborting.\n"); | 369 "Aborting.\n"); |
| 370 return 1; | 370 return 1; |
| 371 #endif | 371 #endif |
| 372 } | 372 } |
| 373 | 373 |
| 374 int internal_shutdown(void) | 374 int internal_shutdown(void) |
| 375 { | 375 { |
| 376 release_io_perms(); | 376 release_io_perms(); |
| 377 | 377 |
| 378 #if defined(__i386__) || defined(__x86_64__) | |
| 379 if (target_bus == CHIP_BUSTYPE_LPC || | |
| 380 target_bus == CHIP_BUSTYPE_FWH) { | |
| 381 it85xx_shutdown(); | |
| 382 wpce775x_shutdown(); | |
| 383 mec1308_shutdown(); | |
| 384 } | |
| 385 #endif | |
| 386 | |
| 387 return 0; | 378 return 0; |
| 388 } | 379 } |
| 389 #endif | 380 #endif |
| 390 | 381 |
| 391 void internal_chip_writeb(uint8_t val, chipaddr addr) | 382 void internal_chip_writeb(uint8_t val, chipaddr addr) |
| 392 { | 383 { |
| 393 mmio_writeb(val, (void *) addr); | 384 mmio_writeb(val, (void *) addr); |
| 394 } | 385 } |
| 395 | 386 |
| 396 void internal_chip_writew(uint16_t val, chipaddr addr) | 387 void internal_chip_writew(uint16_t val, chipaddr addr) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 416 uint32_t internal_chip_readl(const chipaddr addr) | 407 uint32_t internal_chip_readl(const chipaddr addr) |
| 417 { | 408 { |
| 418 return mmio_readl((void *) addr); | 409 return mmio_readl((void *) addr); |
| 419 } | 410 } |
| 420 | 411 |
| 421 void internal_chip_readn(uint8_t *buf, const chipaddr addr, size_t len) | 412 void internal_chip_readn(uint8_t *buf, const chipaddr addr, size_t len) |
| 422 { | 413 { |
| 423 memcpy(buf, (void *)addr, len); | 414 memcpy(buf, (void *)addr, len); |
| 424 return; | 415 return; |
| 425 } | 416 } |
| OLD | NEW |