6. if (pci_read_config_byte(pdev, ET1310_PCI_EEPROM_STATUS, &eestatus)) {
dev_err(&pdev->dev,
"Could not read PCI config space for EEPROM Statusn");
return -EIO;
}
/* Determine if the error(s) we care about are present. If they are
* present we need to fail.
*/
if (eestatus & 0x4C) {
int write_failed = 0;
if (pdev->revision == 0x01) {
int i;
static const u8 eedata[4] = { 0xFE, 0x13, 0x10, 0xFF };
/* Re-write the first 4 bytes if we have an eeprom
* present and the revision id is 1, this fixes the
* corruption seen with 1310 B Silicon
*/
for (i = 0; i < 3; i++)
if (eeprom_write(adapter, i, eedata[i]) < 0)
write_failed = 1;
}
if (pdev->revision != 0x01 || write_failed) {
dev_err(&pdev->dev,
"Fatal EEPROM Status Error - 0x%04xn", eestatus);
/* This error could mean that there was an error
* reading the eeprom or that the eeprom doesn't exist.
* We will treat each case the same and not try to
* gather additional information that normally would
* come from the eeprom, like MAC Address
*/
adapter->has_eeprom = 0;
return -EIO;
}
13. <body>
<div class="chapter" title="Chapter 1. What Is EPUB 3?">
<div class="titlepage">
<h1 class="title"><a id="what_is_epub_3_question"></a>What Is EPUB 3?</h1>
</div>
<div class="sect1" title="EPUB 3 in a Nutshell">
<div class="titlepage">
<h1 class="title"><a id="epub_3_in_a_nutshell"></a>EPUB 3 in a Nutshell</h1>
</div>
<p>So what exactly is an EPUB? If you follow electronic publishing at all, you’ve
undoubtedly run into the term, but you may have seen or heard it incorrectly being used
as a synonym for “ebook”—as a shorthand for talking about <span
class="emphasis"><em>electronic</em></span> <span class="emphasis"><em>books</
em></span>. Although the two terms share a common relation in electronic book
production, they aren’t interchangeable. EPUB, as we’re here to discover, is a <span
class="emphasis"><em>format</em></span> for representing documents in electronic
form. “Ebook,” on the other hand, is just an abstract term used to encompass any
electronic representation of a book, and includes formats such as PDF, HTML, ASCII
text, Word, and a host of others, in addition to EPUB.</p>
O’Reilly, What Is EPUB 3 ?, http://goo.gl/X51CK
17. $ make type=EPUB
$ make type=EPUB3
$ make type=MOBI
$ make type=KF8 $ make publish
$ make type=PDF $ make money
$ make type=HTML
$ make type=CHM
$ make type=TXT
18.
19. v.s.
<h1>What is EPUB?</h1>
<p>The most widely accepted format for
ebooks today is EPUB, which is
developed and maintained by the IDPF.
You can find the official specification ...
Elizabeth Castro, EPUB Straight to the Point
21. What is EPUB?
============
The most widely accepted **format** for ebooks today is
EPUB, which is developed and maintained by the IDPF.
Ebook Formats
---------------
* epub
* pdf
* mobi
* html
WYSIWYG Plain Text
22. Chapter 1. What Is EPUB 3?
======================
EPUB 3 in a Nutshell
-----------------------------
So what exactly is an EPUB? If you follow electronic
publishing at all, youʼve undoubtedly run into the term, but you
may have seen or heard it incorrectly being used as a
synonym for “ebook” -- as a shorthand for talking about
**electronic books**. Although the two terms share a common
relation in electronic book production, they arenʼt
interchangeable.
Sigil
23. Chapter 1. What Is EPUB 3?
======================
EPUB 3 in a Nutshell
-----------------------------
So what exactly is an EPUB? If you follow electronic
publishing at all, youʼve undoubtedly run into the term, but you
may have seen or heard it incorrectly being used as a
synonym for “ebook” -- as a shorthand for talking about
**electronic books**. Although the two terms share a common
relation in electronic book production, they arenʼt
interchangeable.
?
25. Chapter 1. What Is EPUB 3?
==========================
EPUB 3 in a Nutshell
--------------------
So what exactly is an EPUB? If you follow electronic
publishing at all, you’ve undoubtedly run into the term,
but you may have seen or heard it incorrectly being used
as a synonym for “ebook” -- as a shorthand for talking
about **electronic books**. Although the two terms share
a common relation in electronic book production, they
aren’t interchangeable.
Chapter 1. What Is EPUB 3?
======================
EPUB 3 in a Nutshell
-----------------------------
So what exactly is an EPUB? If you follow electronic
publishing at all, youʼve undoubtedly run into the term,
but you may have seen or heard it incorrectly being used
as a synonym for “ebook” -- as a shorthand for talking
about **electronic books**. Although the two terms share
a common relation in electronic book production, they
arenʼt interchangeable.
34. Chapter 1. What Is EPUB 3?
======================
Markdown EPUB 3 in a Nutshell
-----------------------------
?
So what exactly is an EPUB? If you
follow electronic publishing at all,
eBooks
TXT, EPUB, MOBI, PDF, CHM, ...
36. Pandoc a universal document converter
pandoc -f markdown -t epub source.txt -o target.epub
Chapter 1. What Is EPUB 3?
======================
EPUB 3 in a Nutshell
-----------------------------
So what exactly is an EPUB? If you
follow electronic publishing at all,
Pandoc, http://johnmacfarlane.net/pandoc/
42. ! plain t
!
plain ext pla
in text
text plain t
ext pla
plain in text
! text
plain
text
RSS
plain text plain xttext
ext te t n
p l a i n ext plai
t e x t plain t
p l a i n in text
pla
...
Continuous
Publishing