Changeset d1582b50 in mainline for uspace/drv/block


Ignore:
Timestamp:
2020-12-14T20:41:53Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Fix spacing in single-line comments using latest ccheck

This found incorrectly formatted section comments (with blocks of
asterisks or dashes). I strongly believe against using section comments
but I am not simply removing them since that would probably be
controversial.

Location:
uspace/drv/block/ahci
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci.c

    r1382446 rd1582b50  
    131131static int sata_devices_count = 0;
    132132
    133 /*----------------------------------------------------------------------------*/
    134 /*-- AHCI Interface ----------------------------------------------------------*/
    135 /*----------------------------------------------------------------------------*/
     133/*
     134 * AHCI Interface
     135 */
    136136
    137137static ahci_iface_t ahci_interface = {
     
    298298}
    299299
    300 /*----------------------------------------------------------------------------*/
    301 /*-- AHCI Commands -----------------------------------------------------------*/
    302 /*----------------------------------------------------------------------------*/
     300/*
     301 * AHCI Commands
     302 */
    303303
    304304/** Wait for interrupt event.
     
    842842}
    843843
    844 /*----------------------------------------------------------------------------*/
    845 /*-- Interrupts handling -----------------------------------------------------*/
    846 /*----------------------------------------------------------------------------*/
     844/*
     845 * Interrupts handling
     846 */
    847847
    848848static irq_pio_range_t ahci_ranges[] = {
     
    919919}
    920920
    921 /*----------------------------------------------------------------------------*/
    922 /*-- AHCI and SATA device creating and initializing routines -----------------*/
    923 /*----------------------------------------------------------------------------*/
     921/*
     922 * AHCI and SATA device creating and initializing routines
     923 */
    924924
    925925/** Allocate SATA device structure with buffers for hardware.
     
    12731273}
    12741274
    1275 /*----------------------------------------------------------------------------*/
    1276 /*-- Helpers and utilities ---------------------------------------------------*/
    1277 /*----------------------------------------------------------------------------*/
     1275/*
     1276 * Helpers and utilities
     1277 */
    12781278
    12791279/** Convert SATA model name
     
    13131313}
    13141314
    1315 /*----------------------------------------------------------------------------*/
    1316 /*-- AHCI Main routine -------------------------------------------------------*/
    1317 /*----------------------------------------------------------------------------*/
     1315/*
     1316 * AHCI Main routine
     1317 */
    13181318
    13191319int main(int argc, char *argv[])
  • uspace/drv/block/ahci/ahci_hw.h

    r1382446 rd1582b50  
    3636#include <stdint.h>
    3737
    38 /*----------------------------------------------------------------------------*/
    39 /*-- AHCI standard constants -------------------------------------------------*/
    40 /*----------------------------------------------------------------------------*/
     38/*
     39 * AHCI standard constants
     40 */
    4141
    4242/** AHCI standard 1.3 - maximum ports. */
    4343#define AHCI_MAX_PORTS  32
    4444
    45 /*----------------------------------------------------------------------------*/
    46 /*-- AHCI PCI Registers ------------------------------------------------------*/
    47 /*----------------------------------------------------------------------------*/
     45/*
     46 * AHCI PCI Registers
     47 */
    4848
    4949/** AHCI PCI register Identifiers offset. */
     
    296296} ahci_pcireg_mlat_t;
    297297
    298 /*----------------------------------------------------------------------------*/
    299 /*-- AHCI Memory Registers ---------------------------------------------------*/
    300 /*----------------------------------------------------------------------------*/
     298/*
     299 * AHCI Memory Registers
     300 */
    301301
    302302/** Number of pages for ahci memory registers. */
  • uspace/drv/block/ahci/ahci_sata.h

    r1382446 rd1582b50  
    3636#include <stdint.h>
    3737
    38 /*----------------------------------------------------------------------------*/
    39 /*-- SATA Buffer Lengths -----------------------------------------------------*/
    40 /*----------------------------------------------------------------------------*/
     38/*
     39 * SATA Buffer Lengths
     40 */
    4141
    4242/** Default sector size in bytes. */
     
    4949#define SATA_IDENTIFY_DEVICE_BUFFER_LENGTH  512
    5050
    51 /*----------------------------------------------------------------------------*/
    52 /*-- SATA Fis Frames ---------------------------------------------------------*/
    53 /*----------------------------------------------------------------------------*/
     51/*
     52 * SATA Fis Frames
     53 */
    5454
    5555/** Sata FIS Type number. */
     
    130130} sata_ncq_command_frame_t;
    131131
    132 /*----------------------------------------------------------------------------*/
    133 /*-- SATA Identify device ----------------------------------------------------*/
    134 /*----------------------------------------------------------------------------*/
     132/*
     133 * SATA Identify device
     134 */
    135135
    136136/** Data returned from identify device and identify packet device command. */
Note: See TracChangeset for help on using the changeset viewer.