| 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) 2000 Silicon Integrated System Corporation | 4 * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com> | 5 * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com> |
| 6 * Copyright (C) 2005-2009 coresystems GmbH | 6 * Copyright (C) 2005-2009 coresystems GmbH |
| 7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger | 7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
| 8 * | 8 * |
| 9 * This program is free software; you can redistribute it and/or modify | 9 * This program is free software; you can redistribute it and/or modify |
| 10 * it under the terms of the GNU General Public License as published by | 10 * it under the terms of the GNU General Public License as published by |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 /* layout.c */ | 465 /* layout.c */ |
| 466 int show_id(uint8_t *bios, int size, int force); | 466 int show_id(uint8_t *bios, int size, int force); |
| 467 | 467 |
| 468 /* spi.c */ | 468 /* spi.c */ |
| 469 enum spi_controller { | 469 enum spi_controller { |
| 470 SPI_CONTROLLER_NONE, | 470 SPI_CONTROLLER_NONE, |
| 471 #if CONFIG_INTERNAL == 1 | 471 #if CONFIG_INTERNAL == 1 |
| 472 #if defined(__i386__) || defined(__x86_64__) | 472 #if defined(__i386__) || defined(__x86_64__) |
| 473 SPI_CONTROLLER_ICH7, | 473 SPI_CONTROLLER_ICH7, |
| 474 SPI_CONTROLLER_ICH9, | 474 SPI_CONTROLLER_ICH9, |
| 475 SPI_CONTROLLER_IT85XX, |
| 475 SPI_CONTROLLER_IT87XX, | 476 SPI_CONTROLLER_IT87XX, |
| 476 SPI_CONTROLLER_SB600, | 477 SPI_CONTROLLER_SB600, |
| 477 SPI_CONTROLLER_VIA, | 478 SPI_CONTROLLER_VIA, |
| 478 SPI_CONTROLLER_WBSIO, | 479 SPI_CONTROLLER_WBSIO, |
| 479 SPI_CONTROLLER_MCP6X_BITBANG, | 480 SPI_CONTROLLER_MCP6X_BITBANG, |
| 480 #endif | 481 #endif |
| 481 #endif | 482 #endif |
| 482 #if CONFIG_FT2232_SPI == 1 | 483 #if CONFIG_FT2232_SPI == 1 |
| 483 SPI_CONTROLLER_FT2232, | 484 SPI_CONTROLLER_FT2232, |
| 484 #endif | 485 #endif |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb, | 520 int ich_init_spi(struct pci_dev *dev, uint32_t base, void *rcrb, |
| 520 int ich_generation); | 521 int ich_generation); |
| 521 int via_init_spi(struct pci_dev *dev); | 522 int via_init_spi(struct pci_dev *dev); |
| 522 int ich_spi_send_command(unsigned int writecnt, unsigned int readcnt, | 523 int ich_spi_send_command(unsigned int writecnt, unsigned int readcnt, |
| 523 const unsigned char *writearr, unsigned char *readarr); | 524 const unsigned char *writearr, unsigned char *readarr); |
| 524 int ich_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); | 525 int ich_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); |
| 525 int ich_spi_write_256(struct flashchip *flash, uint8_t * buf, int start, int len
); | 526 int ich_spi_write_256(struct flashchip *flash, uint8_t * buf, int start, int len
); |
| 526 int ich_spi_send_multicommand(struct spi_command *cmds); | 527 int ich_spi_send_multicommand(struct spi_command *cmds); |
| 527 #endif | 528 #endif |
| 528 | 529 |
| 530 /* it85spi.c */ |
| 531 struct superio probe_superio_ite85xx(void); |
| 532 int it85xx_spi_init(void); |
| 533 int it85xx_shutdown(void); |
| 534 int it85xx_probe_spi_flash(const char *name); |
| 535 int it85xx_spi_send_command(unsigned int writecnt, unsigned int readcnt, |
| 536 const unsigned char *writearr, unsigned char *readarr); |
| 537 |
| 529 /* it87spi.c */ | 538 /* it87spi.c */ |
| 530 void enter_conf_mode_ite(uint16_t port); | 539 void enter_conf_mode_ite(uint16_t port); |
| 531 void exit_conf_mode_ite(uint16_t port); | 540 void exit_conf_mode_ite(uint16_t port); |
| 532 struct superio probe_superio_ite(void); | 541 struct superio probe_superio_ite(void); |
| 533 int init_superio_ite(void); | 542 int init_superio_ite(void); |
| 534 int it87spi_init(void); | 543 int it87spi_init(void); |
| 535 int it8716f_spi_send_command(unsigned int writecnt, unsigned int readcnt, | 544 int it8716f_spi_send_command(unsigned int writecnt, unsigned int readcnt, |
| 536 const unsigned char *writearr, unsigned char *readarr); | 545 const unsigned char *writearr, unsigned char *readarr); |
| 537 int it8716f_spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int
len); | 546 int it8716f_spi_chip_read(struct flashchip *flash, uint8_t *buf, int start, int
len); |
| 538 int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start,
int len); | 547 int it8716f_spi_chip_write_256(struct flashchip *flash, uint8_t *buf, int start,
int len); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 580 |
| 572 void sp_flush_incoming(void); | 581 void sp_flush_incoming(void); |
| 573 fdtype sp_openserport(char *dev, unsigned int baud); | 582 fdtype sp_openserport(char *dev, unsigned int baud); |
| 574 void __attribute__((noreturn)) sp_die(char *msg); | 583 void __attribute__((noreturn)) sp_die(char *msg); |
| 575 extern fdtype sp_fd; | 584 extern fdtype sp_fd; |
| 576 int serialport_shutdown(void); | 585 int serialport_shutdown(void); |
| 577 int serialport_write(unsigned char *buf, unsigned int writecnt); | 586 int serialport_write(unsigned char *buf, unsigned int writecnt); |
| 578 int serialport_read(unsigned char *buf, unsigned int readcnt); | 587 int serialport_read(unsigned char *buf, unsigned int readcnt); |
| 579 | 588 |
| 580 #endif /* !__PROGRAMMER_H__ */ | 589 #endif /* !__PROGRAMMER_H__ */ |
| OLD | NEW |