Skip to content

Commit

Permalink
isci: remove mmio wrappers
Browse files Browse the repository at this point in the history
Remove a couple of layers around read/writel to make the driver readable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Christoph Hellwig authored and Dan Williams committed Jul 3, 2011
1 parent 4393aa4 commit bc99aa4
Show file tree
Hide file tree
Showing 11 changed files with 258 additions and 1,167 deletions.
225 changes: 126 additions & 99 deletions drivers/scsi/isci/core/scic_sds_controller.c

Large diffs are not rendered by default.

34 changes: 1 addition & 33 deletions drivers/scsi/isci/core/scic_sds_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#define _SCIC_SDS_CONTROLLER_H_

#include <linux/string.h>
#include <linux/io.h>

/**
* This file contains the structures, constants and prototypes used for the
Expand All @@ -80,7 +81,6 @@
#include "scu_unsolicited_frame.h"
#include "scic_sds_unsolicited_frame_control.h"
#include "scic_sds_port_configuration_agent.h"
#include "scic_sds_pci.h"

struct scic_sds_remote_device;
struct scic_sds_request;
Expand Down Expand Up @@ -427,38 +427,6 @@ extern const struct scic_sds_controller_state_handler
#define scic_sds_controller_get_port_configuration_agent(controller) \
(&(controller)->port_agent)

/**
* smu_register_write() -
*
* This macro writes to the smu_register for this controller
*/
#define smu_register_write(controller, reg, value) \
scic_sds_pci_write_smu_dword((controller), &(reg), (value))

/**
* smu_register_read() -
*
* This macro reads the smu_register for this controller
*/
#define smu_register_read(controller, reg) \
scic_sds_pci_read_smu_dword((controller), &(reg))

/**
* scu_register_write() -
*
* This mcaro writes the scu_register for this controller
*/
#define scu_register_write(controller, reg, value) \
scic_sds_pci_write_scu_dword((controller), &(reg), (value))

/**
* scu_register_read() -
*
* This macro reads the scu_register for this controller
*/
#define scu_register_read(controller, reg) \
scic_sds_pci_read_scu_dword((controller), &(reg))

/**
* scic_sds_controller_get_protocol_engine_group() -
*
Expand Down
Loading

0 comments on commit bc99aa4

Please sign in to comment.