Skip to content

Commit

Permalink
mei: hw-me.c fix kernel doc
Browse files Browse the repository at this point in the history
Fix the kernel doc for the functions in hw-me.c

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Jan 9, 2013
1 parent 6222f7b commit d025284
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions drivers/misc/mei/hw-me.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,13 @@ static inline void mei_reg_write(const struct mei_device *dev,
}

/**
* mei_hcsr_read - Reads 32bit data from the host CSR
* mei_mecbrw_read - Reads 32bit data from ME circular buffer
* read window register
*
* @dev: the device structure
*
* returns the byte read.
* returns ME_CB_RW register value (u32)
*/
u32 mei_hcsr_read(const struct mei_device *dev)
{
return mei_reg_read(dev, H_CSR);
}

u32 mei_mecbrw_read(const struct mei_device *dev)
{
return mei_reg_read(dev, ME_CB_RW);
Expand All @@ -77,21 +73,34 @@ u32 mei_mecsr_read(const struct mei_device *dev)
}

/**
* mei_set_csr_register - writes H_CSR register to the mei device,
* mei_hcsr_read - Reads 32bit data from the host CSR
*
* @dev: the device structure
*
* returns H_CSR register value (u32)
*/
u32 mei_hcsr_read(const struct mei_device *dev)
{
return mei_reg_read(dev, H_CSR);
}

/**
* mei_hcsr_set - writes H_CSR register to the mei device,
* and ignores the H_IS bit for it is write-one-to-zero.
*
* @dev: the device structure
*/
void mei_hcsr_set(struct mei_device *dev)
{

if ((dev->host_hw_state & H_IS) == H_IS)
dev->host_hw_state &= ~H_IS;
mei_reg_write(dev, H_CSR, dev->host_hw_state);
dev->host_hw_state = mei_hcsr_read(dev);
}

/**
* mei_enable_interrupts - clear and stop interrupts
* mei_clear_interrupts - clear and stop interrupts
*
* @dev: the device structure
*/
Expand Down

0 comments on commit d025284

Please sign in to comment.