payloads: Drop unneeded empty lines
Change-Id: I6faeb7c783052edc4217d2d301dbb905e1fc6a19 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44605 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
committed by
Michael Niewöhner
parent
99e0c7ddc1
commit
3ff7bcf10e
@@ -42,7 +42,6 @@
|
||||
#include <libpayload-config.h>
|
||||
#include <libpayload.h>
|
||||
|
||||
|
||||
/**
|
||||
* PCs can have either 64 (very old ones), 128, or 256 bytes of CMOS RAM.
|
||||
*
|
||||
|
@@ -27,7 +27,6 @@
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
/* For simplicity sake let's rely on coreboot initializing the UART. */
|
||||
#include <config.h>
|
||||
#include <libpayload.h>
|
||||
|
@@ -39,7 +39,6 @@
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_STATUS
|
||||
static inline u32 _ahci_clear_status(volatile u32 *const reg,
|
||||
const char *const r,
|
||||
@@ -64,7 +63,6 @@ static inline u32 _ahci_clear_status(volatile u32 *const reg)
|
||||
#define ahci_clear_status(p, r) _ahci_clear_status(&(p)->r)
|
||||
#endif
|
||||
|
||||
|
||||
static inline int ahci_port_is_active(const hba_port_t *const port)
|
||||
{
|
||||
return (port->sata_status & (HBA_PxSSTS_IPM_MASK | HBA_PxSSTS_DET_MASK))
|
||||
|
@@ -37,7 +37,6 @@
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
ssize_t ahci_ata_read_sectors(ata_dev_t *const ata_dev,
|
||||
const lba_t start, size_t count,
|
||||
u8 *const buf)
|
||||
|
@@ -35,10 +35,8 @@
|
||||
#include <storage/ata.h>
|
||||
#include <storage/ahci.h>
|
||||
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
ssize_t ahci_packet_read_cmd(atapi_dev_t *const _dev,
|
||||
const u8 *const cmd, const size_t cmdlen,
|
||||
u8 *const buf, const size_t buflen)
|
||||
|
@@ -37,7 +37,6 @@
|
||||
|
||||
#include "ahci_private.h"
|
||||
|
||||
|
||||
#ifdef DEBUG_STATUS
|
||||
static inline u32 _ahci_clear_status(volatile u32 *const reg,
|
||||
const char *const r,
|
||||
@@ -62,7 +61,6 @@ static inline u32 _ahci_clear_status(volatile u32 *const reg)
|
||||
#define ahci_clear_status(p, r) _ahci_clear_status(&(p)->r)
|
||||
#endif
|
||||
|
||||
|
||||
/** Give a buffer with even address. */
|
||||
static u8 *ahci_prdbuf_init(ahci_dev_t *const dev,
|
||||
u8 *const user_buf, const size_t len,
|
||||
|
@@ -120,7 +120,6 @@ typedef volatile struct {
|
||||
#define HBA_CTRL_INTR_EN (1 << 1)
|
||||
#define HBA_CTRL_RESET (1 << 0)
|
||||
|
||||
|
||||
typedef volatile struct {
|
||||
u8 dma_setup_fis[28];
|
||||
u8 _reserved0[4];
|
||||
@@ -229,5 +228,4 @@ ssize_t ahci_ata_read_sectors(ata_dev_t *const ata_dev,
|
||||
const lba_t start, size_t count,
|
||||
u8 *const buf);
|
||||
|
||||
|
||||
#endif /* _AHCI_PRIVATE_H */
|
||||
|
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <storage/ata.h>
|
||||
|
||||
|
||||
/** Reads non-sector-aligned blocks of 512 bytes. */
|
||||
static ssize_t ata_read_unaligned(ata_dev_t *const dev,
|
||||
const lba_t blk_start, size_t blk_count,
|
||||
|
@@ -33,7 +33,6 @@
|
||||
#include <storage/ata.h>
|
||||
#include <storage/atapi.h>
|
||||
|
||||
|
||||
static int atapi_request_sense(atapi_dev_t *const dev)
|
||||
{
|
||||
u8 cdb[12] = { 0, };
|
||||
|
@@ -32,7 +32,6 @@
|
||||
#endif
|
||||
#include <storage/storage.h>
|
||||
|
||||
|
||||
static storage_dev_t **devices = NULL;
|
||||
static size_t devices_length = 0;
|
||||
static size_t dev_count = 0;
|
||||
|
@@ -300,7 +300,6 @@ static void start_setup(struct usbdev_ctrl *this, int ep)
|
||||
udc_handle_setup(this, ep, &dr);
|
||||
}
|
||||
|
||||
|
||||
static void chipidea_enqueue_packet(struct usbdev_ctrl *this, int endpoint,
|
||||
int in_dir, void *data, int len, int zlp, int autofree)
|
||||
{
|
||||
|
@@ -12,7 +12,6 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
|
||||
#include <usb/usb.h>
|
||||
#include "generic_hub.h"
|
||||
#include "dwc2_private.h"
|
||||
|
@@ -426,7 +426,6 @@ oom:
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/* FIXME: Handle control transfers as 3 QHs, so the 2nd stage can be >0x4000 bytes */
|
||||
static int ehci_control (usbdev_t *dev, direction_t dir, int drlen, void *setup,
|
||||
int dalen, u8 *src)
|
||||
@@ -544,7 +543,6 @@ oom:
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
typedef struct _intr_qtd_t intr_qtd_t;
|
||||
|
||||
struct _intr_qtd_t {
|
||||
|
@@ -171,7 +171,6 @@ ehci_rh_poll (usbdev_t *dev)
|
||||
ehci_rh_scanport (dev, port);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ehci_rh_init (usbdev_t *dev)
|
||||
{
|
||||
|
@@ -627,7 +627,6 @@ ohci_bulk (endpoint_t *ep, int dalen, u8 *src, int finalize)
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
struct _intr_queue;
|
||||
|
||||
struct _intrq_td {
|
||||
|
@@ -131,8 +131,6 @@ const char *countries[36][2] = {
|
||||
/* 36 - 255: Reserved */
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct layout_maps {
|
||||
const char *country;
|
||||
const short map[4][0x80];
|
||||
@@ -247,7 +245,6 @@ static const struct layout_maps keyboard_layouts[] = {
|
||||
//#endif
|
||||
};
|
||||
|
||||
|
||||
static void usb_hid_keyboard_queue(int ch) {
|
||||
/* ignore key presses if buffer full */
|
||||
if (keycount < KEYBOARD_BUFFER_SIZE)
|
||||
@@ -316,7 +313,6 @@ usb_hid_process_keyboard_event(usbhid_inst_t *const inst,
|
||||
if (skip)
|
||||
continue;
|
||||
|
||||
|
||||
/* Mask off KB_MOD_CTRL */
|
||||
keypress = map->map[modifiers & 0x03][current->keys[i]];
|
||||
|
||||
@@ -397,7 +393,6 @@ static struct console_input_driver cons = {
|
||||
.input_type = CONSOLE_INPUT_TYPE_USB,
|
||||
};
|
||||
|
||||
|
||||
static int usb_hid_set_layout (const char *country)
|
||||
{
|
||||
/* FIXME should be per keyboard */
|
||||
|
@@ -613,7 +613,6 @@ usb_msc_init (usbdev_t *dev)
|
||||
usb_debug (" it uses %s protocol\n",
|
||||
msc_protocol_strings[interface->bInterfaceProtocol]);
|
||||
|
||||
|
||||
if (interface->bInterfaceProtocol != 0x50) {
|
||||
usb_debug (" Protocol not supported.\n");
|
||||
usb_detach_device (dev->controller, dev->address);
|
||||
|
@@ -515,7 +515,6 @@ static inline int xhci_ep_id(const endpoint_t *const ep) {
|
||||
return ((ep->endpoint & 0x7f) * 2) + (ep->direction != OUT);
|
||||
}
|
||||
|
||||
|
||||
#ifdef XHCI_DUMPS
|
||||
void xhci_dump_slotctx(const slotctx_t *);
|
||||
void xhci_dump_epctx(const epctx_t *);
|
||||
|
@@ -135,7 +135,6 @@ xhci_rh_enable_port(usbdev_t *const dev, int port)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static const generic_hub_ops_t xhci_rh_ops = {
|
||||
.hub_status_changed = xhci_rh_hub_status_changed,
|
||||
.port_status_changed = xhci_rh_port_status_changed,
|
||||
|
@@ -138,7 +138,6 @@ static void corebootfb_putchar(u8 row, u8 col, unsigned int ch)
|
||||
((((vga_colors[fg] >> 16) & 0xff) >> (8 - fbinfo.red_mask_size)) << fbinfo.red_mask_pos);
|
||||
}
|
||||
|
||||
|
||||
dst = FB + ((row * font_height) * fbinfo.bytes_per_line);
|
||||
dst += (col * font_width * (fbinfo.bits_per_pixel >> 3));
|
||||
|
||||
|
@@ -176,7 +176,6 @@ static void init_video_mode(void)
|
||||
writel(((vga_mode.hactive - 1) << 16) | (vga_mode.vactive - 1),
|
||||
DC + 0x5C);
|
||||
|
||||
|
||||
/* Write the VG configuration */
|
||||
|
||||
writel(0x290000F | vga_mode.synccfg, VG + 0x08);
|
||||
|
Reference in New Issue
Block a user