mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
Minor coding style cleanup.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) Procsys. All rights reserved.
|
||||
* Author: Mushtaq Khan <mushtaq_k@procsys.com>
|
||||
<mushtaqk_921@yahoo.co.in>
|
||||
* <mushtaqk_921@yahoo.co.in>
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@@ -21,9 +21,11 @@
|
||||
*
|
||||
* with the reference to libata in kernel 2.4.32
|
||||
*
|
||||
*/
|
||||
*/
|
||||
|
||||
/*File contains SATA read-write and other utility functions.*/
|
||||
/*
|
||||
* File contains SATA read-write and other utility functions.
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <pci.h>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) Procsys. All rights reserved.
|
||||
* Author: Mushtaq Khan <mushtaq_k@procsys.com>
|
||||
<mushtaqk_921@yahoo.co.in>
|
||||
* <mushtaqk_921@yahoo.co.in>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
@@ -19,11 +19,11 @@
|
||||
* MA 02111-1307 USA
|
||||
*
|
||||
* with the reference to ata_piix driver in kernel 2.4.32
|
||||
*/
|
||||
*/
|
||||
|
||||
/*
|
||||
This file contains SATA controller and SATA drive initialization functions
|
||||
*/
|
||||
* This file contains SATA controller and SATA drive initialization functions
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <pci.h>
|
||||
|
@@ -91,7 +91,7 @@ enum {
|
||||
/* bits in ATA command block registers */
|
||||
ATA_HOB = (1 << 7), /* LBA48 selector */
|
||||
ATA_NIEN = (1 << 1), /* disable-irq flag */
|
||||
/*ATA_LBA = (1 << 6), *//* LBA28 selector */
|
||||
/*ATA_LBA = (1 << 6), */ /* LBA28 selector */
|
||||
ATA_DEV1 = (1 << 4), /* Select Device 1 (slave) */
|
||||
ATA_DEVICE_OBS = (1 << 7) | (1 << 5), /* obs bits in dev reg */
|
||||
ATA_DEVCTL_OBS = (1 << 3), /* obsolete bit in devctl reg */
|
||||
|
@@ -24,11 +24,11 @@ struct sata_ioports {
|
||||
};
|
||||
|
||||
struct sata_port {
|
||||
unsigned char port_no; /*primary-0, secondary=1 */
|
||||
struct sata_ioports ioaddr; /*ATA cmd/ctl/dma reg blks */
|
||||
unsigned char port_no; /* primary=0, secondary=1 */
|
||||
struct sata_ioports ioaddr; /* ATA cmd/ctl/dma reg blks */
|
||||
unsigned char ctl_reg;
|
||||
unsigned char last_ctl;
|
||||
unsigned char port_state; /*1-port is present and
|
||||
unsigned char port_state; /* 1-port is present and */
|
||||
0-port is not available */
|
||||
unsigned char dev_mask;
|
||||
};
|
||||
|
Reference in New Issue
Block a user