diff options
| author | James Morris <jmorris@namei.org> | 2010-05-06 08:21:04 -0400 |
|---|---|---|
| committer | James Morris <jmorris@namei.org> | 2010-05-06 08:21:04 -0400 |
| commit | 043b4d40f53131c5f72eca2a46555fe35328a930 (patch) | |
| tree | 02a40eeb688f7ed9730e26a22f39ad7e04378de2 | |
| parent | 292823814261e085cdcef06b6b691e6c2563fbd4 (diff) | |
| parent | 722154e4cacf015161efe60009ae9be23d492296 (diff) | |
Merge branch 'master' into next
Conflicts:
security/keys/keyring.c
Resolved conflict with whitespace fix in find_keyring_by_name()
Signed-off-by: James Morris <jmorris@namei.org>
41 files changed, 508 insertions, 196 deletions
diff --git a/Documentation/DocBook/libata.tmpl b/Documentation/DocBook/libata.tmpl index ba9975771503..ff3e5bec1c24 100644 --- a/Documentation/DocBook/libata.tmpl +++ b/Documentation/DocBook/libata.tmpl | |||
| @@ -107,10 +107,6 @@ void (*dev_config) (struct ata_port *, struct ata_device *); | |||
| 107 | issue of SET FEATURES - XFER MODE, and prior to operation. | 107 | issue of SET FEATURES - XFER MODE, and prior to operation. |
| 108 | </para> | 108 | </para> |
| 109 | <para> | 109 | <para> |
| 110 | Called by ata_device_add() after ata_dev_identify() determines | ||
| 111 | a device is present. | ||
| 112 | </para> | ||
| 113 | <para> | ||
| 114 | This entry may be specified as NULL in ata_port_operations. | 110 | This entry may be specified as NULL in ata_port_operations. |
| 115 | </para> | 111 | </para> |
| 116 | 112 | ||
| @@ -154,8 +150,8 @@ unsigned int (*mode_filter) (struct ata_port *, struct ata_device *, unsigned in | |||
| 154 | 150 | ||
| 155 | <sect2><title>Taskfile read/write</title> | 151 | <sect2><title>Taskfile read/write</title> |
| 156 | <programlisting> | 152 | <programlisting> |
| 157 | void (*tf_load) (struct ata_port *ap, struct ata_taskfile *tf); | 153 | void (*sff_tf_load) (struct ata_port *ap, struct ata_taskfile *tf); |
| 158 | void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf); | 154 | void (*sff_tf_read) (struct ata_port *ap, struct ata_taskfile *tf); |
| 159 | </programlisting> | 155 | </programlisting> |
| 160 | 156 | ||
| 161 | <para> | 157 | <para> |
| @@ -164,36 +160,35 @@ void (*tf_read) (struct ata_port *ap, struct ata_taskfile *tf); | |||
| 164 | hardware registers / DMA buffers, to obtain the current set of | 160 | hardware registers / DMA buffers, to obtain the current set of |
| 165 | taskfile register values. | 161 | taskfile register values. |
| 166 | Most drivers for taskfile-based hardware (PIO or MMIO) use | 162 | Most drivers for taskfile-based hardware (PIO or MMIO) use |
| 167 | ata_tf_load() and ata_tf_read() for these hooks. | 163 | ata_sff_tf_load() and ata_sff_tf_read() for these hooks. |
| 168 | </para> | 164 | </para> |
| 169 | 165 | ||
| 170 | </sect2> | 166 | </sect2> |
| 171 | 167 | ||
| 172 | <sect2><title>PIO data read/write</title> | 168 | <sect2><title>PIO data read/write</title> |
| 173 | <programlisting> | 169 | <programlisting> |
| 174 | void (*data_xfer) (struct ata_device *, unsigned char *, unsigned int, int); | 170 | void (*sff_data_xfer) (struct ata_device *, unsigned char *, unsigned int, int); |
| 175 | </programlisting> | 171 | </programlisting> |
| 176 | 172 | ||
| 177 | <para> | 173 | <para> |
| 178 | All bmdma-style drivers must implement this hook. This is the low-level | 174 | All bmdma-style drivers must implement this hook. This is the low-level |
| 179 | operation that actually copies the data bytes during a PIO data | 175 | operation that actually copies the data bytes during a PIO data |
| 180 | transfer. | 176 | transfer. |
| 181 | Typically the driver | 177 | Typically the driver will choose one of ata_sff_data_xfer_noirq(), |
| 182 | will choose one of ata_pio_data_xfer_noirq(), ata_pio_data_xfer(), or | 178 | ata_sff_data_xfer(), or ata_sff_data_xfer32(). |
| 183 | ata_mmio_data_xfer(). | ||
| 184 | </para> | 179 | </para> |
| 185 | 180 | ||
| 186 | </sect2> | 181 | </sect2> |
| 187 | 182 | ||
| 188 | <sect2><title>ATA command execute</title> | 183 | <sect2><title>ATA command execute</title> |
| 189 | <programlisting> | 184 | <programlisting> |
| 190 | void (*exec_command)(struct ata_port *ap, struct ata_taskfile *tf); | 185 | void (*sff_exec_command)(struct ata_port *ap, struct ata_taskfile *tf); |
| 191 | </programlisting> | 186 | </programlisting> |
| 192 | 187 | ||
| 193 | <para> | 188 | <para> |
| 194 | causes an ATA command, previously loaded with | 189 | causes an ATA command, previously loaded with |
| 195 | ->tf_load(), to be initiated in hardware. | 190 | ->tf_load(), to be initiated in hardware. |
| 196 | Most drivers for taskfile-based hardware use ata_exec_command() | 191 | Most drivers for taskfile-based hardware use ata_sff_exec_command() |
| 197 | for this hook. | 192 | for this hook. |
| 198 | </para> | 193 | </para> |
| 199 | 194 | ||
| @@ -218,8 +213,8 @@ command. | |||
| 218 | 213 | ||
| 219 | <sect2><title>Read specific ATA shadow registers</title> | 214 | <sect2><title>Read specific ATA shadow registers</title> |
| 220 | <programlisting> | 215 | <programlisting> |
| 221 | u8 (*check_status)(struct ata_port *ap); | 216 | u8 (*sff_check_status)(struct ata_port *ap); |
| 222 | u8 (*check_altstatus)(struct ata_port *ap); | 217 | u8 (*sff_check_altstatus)(struct ata_port *ap); |
| 223 | </programlisting> | 218 | </programlisting> |
| 224 | 219 | ||
| 225 | <para> | 220 | <para> |
| @@ -227,20 +222,14 @@ u8 (*check_altstatus)(struct ata_port *ap); | |||
| 227 | hardware. On some hardware, reading the Status register has | 222 | hardware. On some hardware, reading the Status register has |
| 228 | the side effect of clearing the interrupt condition. | 223 | the side effect of clearing the interrupt condition. |
| 229 | Most drivers for taskfile-based hardware use | 224 | Most drivers for taskfile-based hardware use |
| 230 | ata_check_status() for this hook. | 225 | ata_sff_check_status() for this hook. |
| 231 | </para> | ||
| 232 | <para> | ||
| 233 | Note that because this is called from ata_device_add(), at | ||
| 234 | least a dummy function that clears device interrupts must be | ||
| 235 | provided for all drivers, even if the controller doesn't | ||
| 236 | actually have a taskfile status register. | ||
| 237 | </para> | 226 | </para> |
| 238 | 227 | ||
| 239 | </sect2> | 228 | </sect2> |
| 240 | 229 | ||
| 241 | <sect2><title>Select ATA device on bus</title> | 230 | <sect2><title>Select ATA device on bus</title> |
| 242 | <programlisting> | 231 | <programlisting> |
| 243 | void (*dev_select)(struct ata_port *ap, unsigned int device); | 232 | void (*sff_dev_select)(struct ata_port *ap, unsigned int device); |
| 244 | </programlisting> | 233 | </programlisting> |
| 245 | 234 | ||
| 246 | <para> | ||
