Changeset d1582b50 in mainline for uspace/drv/block
- Timestamp:
- 2020-12-14T20:41:53Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02fe42e
- Parents:
- 1382446
- git-author:
- Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
- Location:
- uspace/drv/block/ahci
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
r1382446 rd1582b50 131 131 static int sata_devices_count = 0; 132 132 133 /* ----------------------------------------------------------------------------*/134 /*-- AHCI Interface ----------------------------------------------------------*/ 135 /*----------------------------------------------------------------------------*/133 /* 134 * AHCI Interface 135 */ 136 136 137 137 static ahci_iface_t ahci_interface = { … … 298 298 } 299 299 300 /* ----------------------------------------------------------------------------*/301 /*-- AHCI Commands -----------------------------------------------------------*/ 302 /*----------------------------------------------------------------------------*/300 /* 301 * AHCI Commands 302 */ 303 303 304 304 /** Wait for interrupt event. … … 842 842 } 843 843 844 /* ----------------------------------------------------------------------------*/845 /*-- Interrupts handling -----------------------------------------------------*/ 846 /*----------------------------------------------------------------------------*/844 /* 845 * Interrupts handling 846 */ 847 847 848 848 static irq_pio_range_t ahci_ranges[] = { … … 919 919 } 920 920 921 /* ----------------------------------------------------------------------------*/922 /*-- AHCI and SATA device creating and initializing routines -----------------*/ 923 /*----------------------------------------------------------------------------*/921 /* 922 * AHCI and SATA device creating and initializing routines 923 */ 924 924 925 925 /** Allocate SATA device structure with buffers for hardware. … … 1273 1273 } 1274 1274 1275 /* ----------------------------------------------------------------------------*/1276 /*-- Helpers and utilities ---------------------------------------------------*/ 1277 /*----------------------------------------------------------------------------*/1275 /* 1276 * Helpers and utilities 1277 */ 1278 1278 1279 1279 /** Convert SATA model name … … 1313 1313 } 1314 1314 1315 /* ----------------------------------------------------------------------------*/1316 /*-- AHCI Main routine -------------------------------------------------------*/ 1317 /*----------------------------------------------------------------------------*/1315 /* 1316 * AHCI Main routine 1317 */ 1318 1318 1319 1319 int main(int argc, char *argv[]) -
uspace/drv/block/ahci/ahci_hw.h
r1382446 rd1582b50 36 36 #include <stdint.h> 37 37 38 /* ----------------------------------------------------------------------------*/39 /*-- AHCI standard constants -------------------------------------------------*/ 40 /*----------------------------------------------------------------------------*/38 /* 39 * AHCI standard constants 40 */ 41 41 42 42 /** AHCI standard 1.3 - maximum ports. */ 43 43 #define AHCI_MAX_PORTS 32 44 44 45 /* ----------------------------------------------------------------------------*/46 /*-- AHCI PCI Registers ------------------------------------------------------*/ 47 /*----------------------------------------------------------------------------*/45 /* 46 * AHCI PCI Registers 47 */ 48 48 49 49 /** AHCI PCI register Identifiers offset. */ … … 296 296 } ahci_pcireg_mlat_t; 297 297 298 /* ----------------------------------------------------------------------------*/299 /*-- AHCI Memory Registers ---------------------------------------------------*/ 300 /*----------------------------------------------------------------------------*/298 /* 299 * AHCI Memory Registers 300 */ 301 301 302 302 /** Number of pages for ahci memory registers. */ -
uspace/drv/block/ahci/ahci_sata.h
r1382446 rd1582b50 36 36 #include <stdint.h> 37 37 38 /* ----------------------------------------------------------------------------*/39 /*-- SATA Buffer Lengths -----------------------------------------------------*/ 40 /*----------------------------------------------------------------------------*/38 /* 39 * SATA Buffer Lengths 40 */ 41 41 42 42 /** Default sector size in bytes. */ … … 49 49 #define SATA_IDENTIFY_DEVICE_BUFFER_LENGTH 512 50 50 51 /* ----------------------------------------------------------------------------*/52 /*-- SATA Fis Frames ---------------------------------------------------------*/ 53 /*----------------------------------------------------------------------------*/51 /* 52 * SATA Fis Frames 53 */ 54 54 55 55 /** Sata FIS Type number. */ … … 130 130 } sata_ncq_command_frame_t; 131 131 132 /* ----------------------------------------------------------------------------*/133 /*-- SATA Identify device ----------------------------------------------------*/ 134 /*----------------------------------------------------------------------------*/132 /* 133 * SATA Identify device 134 */ 135 135 136 136 /** Data returned from identify device and identify packet device command. */
Note:
See TracChangeset
for help on using the changeset viewer.