diff options
author | Patrick Rudolph <siro@das-labor.org> | 2017-11-19 09:11:58 +0100 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2017-11-25 12:55:56 +0000 |
commit | 5e9dc37818a017fd5cccba65b9268d715e414380 (patch) | |
tree | ddd0fb9f122bd79fcaa146976e912572bd67ea63 /util/intelmetool/rcba.h | |
parent | eca98ba46051d5e2091ac4ad29b053321f06ff73 (diff) | |
download | coreboot-5e9dc37818a017fd5cccba65b9268d715e414380.tar.xz |
util/intelmetool: Fix lint errors and warnings
Clean the code to fix all errors and warnings.
No functional change.
Changes:
* Fix lines over 80chars
* Fix typos
* Restructure code to reduce indent level
* Move RCBA handling into own files
* Introduce helper functions for RCBA access
* Move GPL string into header
* Fix whitespace in macros
Change-Id: Ib8e3617ebb34c47959d6619dfbc7189045e6b8f7
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/22521
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Diffstat (limited to 'util/intelmetool/rcba.h')
-rw-r--r-- | util/intelmetool/rcba.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/intelmetool/rcba.h b/util/intelmetool/rcba.h new file mode 100644 index 0000000000..e1a22be1c2 --- /dev/null +++ b/util/intelmetool/rcba.h @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2017 Patrick Rudolph <siro@das-labor.org> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +int write_rcba32(uint32_t addr, uint32_t val); +int read_rcba32(uint32_t addr, uint32_t *val); |