Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: programmer.h

Issue 6877037: Revert MMIO space writes on shutdown as needed. (Closed) Base URL: ssh://gitrw.chromium.org:9222/flashrom.git@master
Patch Set: re-send to notice reviewer Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« nicintel_spi.c ('K') | « nicintel_spi.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 void mmio_le_writel(uint32_t val, void *addr); 313 void mmio_le_writel(uint32_t val, void *addr);
314 uint8_t mmio_le_readb(void *addr); 314 uint8_t mmio_le_readb(void *addr);
315 uint16_t mmio_le_readw(void *addr); 315 uint16_t mmio_le_readw(void *addr);
316 uint32_t mmio_le_readl(void *addr); 316 uint32_t mmio_le_readl(void *addr);
317 #define pci_mmio_writeb mmio_le_writeb 317 #define pci_mmio_writeb mmio_le_writeb
318 #define pci_mmio_writew mmio_le_writew 318 #define pci_mmio_writew mmio_le_writew
319 #define pci_mmio_writel mmio_le_writel 319 #define pci_mmio_writel mmio_le_writel
320 #define pci_mmio_readb mmio_le_readb 320 #define pci_mmio_readb mmio_le_readb
321 #define pci_mmio_readw mmio_le_readw 321 #define pci_mmio_readw mmio_le_readw
322 #define pci_mmio_readl mmio_le_readl 322 #define pci_mmio_readl mmio_le_readl
323 void rmmio_writeb(uint8_t val, void *addr);
324 void rmmio_writew(uint16_t val, void *addr);
325 void rmmio_writel(uint32_t val, void *addr);
323 326
324 /* programmer.c */ 327 /* programmer.c */
325 int noop_shutdown(void); 328 int noop_shutdown(void);
326 void *fallback_map(const char *descr, unsigned long phys_addr, size_t len); 329 void *fallback_map(const char *descr, unsigned long phys_addr, size_t len);
327 void fallback_unmap(void *virt_addr, size_t len); 330 void fallback_unmap(void *virt_addr, size_t len);
328 uint8_t noop_chip_readb(const chipaddr addr); 331 uint8_t noop_chip_readb(const chipaddr addr);
329 void noop_chip_writeb(uint8_t val, chipaddr addr); 332 void noop_chip_writeb(uint8_t val, chipaddr addr);
330 void fallback_chip_writew(uint16_t val, chipaddr addr); 333 void fallback_chip_writew(uint16_t val, chipaddr addr);
331 void fallback_chip_writel(uint32_t val, chipaddr addr); 334 void fallback_chip_writel(uint32_t val, chipaddr addr);
332 void fallback_chip_writen(uint8_t *buf, chipaddr addr, size_t len); 335 void fallback_chip_writen(uint8_t *buf, chipaddr addr, size_t len);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 #if CONFIG_INTERNAL == 1 671 #if CONFIG_INTERNAL == 1
669 int tegra2_spi_init(void); 672 int tegra2_spi_init(void);
670 void tegra2_spi_shutdown(void*); 673 void tegra2_spi_shutdown(void*);
671 int tegra2_spi_send_command(unsigned int writecnt, unsigned int readcnt, 674 int tegra2_spi_send_command(unsigned int writecnt, unsigned int readcnt,
672 const unsigned char *writearr, unsigned char *readarr); 675 const unsigned char *writearr, unsigned char *readarr);
673 int tegra2_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len); 676 int tegra2_spi_read(struct flashchip *flash, uint8_t *buf, int start, int len);
674 int tegra2_spi_write(struct flashchip *flash, uint8_t *buf, int start, int len); 677 int tegra2_spi_write(struct flashchip *flash, uint8_t *buf, int start, int len);
675 #endif 678 #endif
676 679
677 #endif /* !__PROGRAMMER_H__ */ 680 #endif /* !__PROGRAMMER_H__ */
OLDNEW
« nicintel_spi.c ('K') | « nicintel_spi.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698