Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8066
-gerrit
commit 38975ab7b021494a4de7acf73bd87ad8f0bf8433
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Sat Jan 3 17:18:58 2015 -0700
drivers/intel/fsp: Add HOB tools to work with GUIDs
Add new functions to:
- Compare two GUIDs
- Find a hob based on its GUID
- Print information about GUID_EXTENSION type HOBs
- Print a GUID's address and value
Change-Id: I89377ec8ab7d98fe7dc129097e643aac061ab3a3
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/drivers/intel/fsp/fsp_util.h | 4 ++
src/drivers/intel/fsp/hob.c | 98 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+)
diff --git a/src/drivers/intel/fsp/fsp_util.h b/src/drivers/intel/fsp/fsp_util.h
index cb667dc..3c72f24 100644
--- a/src/drivers/intel/fsp/fsp_util.h
+++ b/src/drivers/intel/fsp/fsp_util.h
@@ -42,7 +42,11 @@ void ChipsetFspReturnPoint(EFI_STATUS Status, VOID *HobListPtr);
void print_hob_mem_attributes(void *Hobptr);
void print_hob_type_structure(u16 Hobtype, void *Hoblistptr);
void print_hob_resource_attributes(void *Hobptr);
+void print_guid_type_attributes(void *Hobptr);
const char * get_hob_type_string(void *Hobptr);
+void * find_hob_by_guid(void *Hoblistptr, EFI_GUID *guid1);
+uint8_t guids_are_equal(EFI_GUID *guid1, EFI_GUID *guid2);
+void printguid(EFI_GUID *guid);
/* Additional HOB types not included in the FSP:
* #define EFI_HOB_TYPE_HANDOFF 0x0001
diff --git a/src/drivers/intel/fsp/hob.c b/src/drivers/intel/fsp/hob.c
index 4537ffb..58cb252 100644
--- a/src/drivers/intel/fsp/hob.c
+++ b/src/drivers/intel/fsp/hob.c
@@ -20,8 +20,27 @@
#include <types.h>
#include <string.h>
#include <console/console.h>
+#include <lib.h> // hexdump
#include "fsp_util.h"
+
+/** Displays a GUID's address and value
+ *
+ * @param guid pointer to the GUID to display
+ */
+void printguid(EFI_GUID *guid)
+{
+ printk(BIOS_SPEW,"Address: %p Guid: %08lx-%04x-%04x-%02x%02x-",
+ guid, (unsigned long)guid->Data1,
+ guid->Data2, guid->Data3,
+ guid->Data4[0], guid->Data4[1]);
+ printk(BIOS_SPEW,"%02x%02x%02x%02x%02x%02x%02x%02x\n",
+ guid->Data4[2], guid->Data4[3],
+ guid->Data4[4], guid->Data4[5],
+ guid->Data4[6], guid->Data4[7],
+ guid->Data4[8], guid->Data4[9] );
+}
+
void print_hob_mem_attributes(void *Hobptr)
{
EFI_HOB_MEMORY_ALLOCATION *HobMemoryPtr = (EFI_HOB_MEMORY_ALLOCATION *)Hobptr;
@@ -118,6 +137,27 @@ const char * get_hob_type_string(void *Hobptr)
return Hobtypestring;
}
+/** Displays the length, location, and GUID value of a GUID extension
+ *
+ * The EFI_HOB_GUID_TYPE is very basic - it just contains the standard
+ * HOB header containing the HOB type and length, and a GUID for
+ * identification. The rest of the data is undefined and must be known
+ * based on the GUID.
+ *
+ * This displays the entire HOB length, and the location of the start
+ * of the HOB, *NOT* the length of or the start of the data inside the HOB.
+ *
+ * @param Hobptr
+ */
+void print_guid_type_attributes(void *Hobptr)
+{
+ printk(BIOS_SPEW, " at location %p with length0x%0lx\n ",
+ Hobptr, (unsigned long)(((EFI_PEI_HOB_POINTERS *) \
+ Hobptr)->Guid->Header.HobLength));
+ printguid(&(((EFI_HOB_GUID_TYPE *)Hobptr)->Name));
+
+}
+
/* Print out a structure of all the HOBs
* that match a certain type:
* Print all types (0x0000)
@@ -159,6 +199,8 @@ void print_hob_type_structure(u16 Hobtype, void *Hoblistptr)
print_hob_mem_attributes(Currenthob); break;
case EFI_HOB_TYPE_RESOURCE_DESCRIPTOR:
print_hob_resource_attributes(Currenthob); break;
+ case EFI_HOB_TYPE_GUID_EXTENSION:
+ print_guid_type_attributes(Currenthob); break;
}
}
@@ -170,3 +212,59 @@ void print_hob_type_structure(u16 Hobtype, void *Hoblistptr)
} while (!Lasthob);
printk(BIOS_DEBUG, "=== End of FSP HOB Data Structure ===\n\n");
}
+
+
+/** Finds a HOB entry based on type and guid
+ *
+ * @param current_hob pointer to the start of the HOB list
+ * @param guid the GUID of the HOB entry to find
+ * @return pointer to the start of the requested HOB or NULL if not found.
+ */
+void * find_hob_by_guid(void *current_hob, EFI_GUID *guid)
+{
+ do {
+ switch (((EFI_HOB_GENERIC_HEADER *)current_hob)->HobType) {
+
+ case EFI_HOB_TYPE_MEMORY_ALLOCATION:
+ if (guids_are_equal(guid, &(((EFI_HOB_MEMORY_ALLOCATION *) \
+ current_hob)->AllocDescriptor.Name)))
+ return current_hob;
+ break;
+ case EFI_HOB_TYPE_RESOURCE_DESCRIPTOR:
+ if (guids_are_equal(guid,
+ &(((EFI_HOB_RESOURCE_DESCRIPTOR *) \
+ current_hob)->Owner)))
+ return current_hob;
+ break;
+ case EFI_HOB_TYPE_GUID_EXTENSION:
+ if (guids_are_equal(guid, &(((EFI_HOB_GUID_TYPE *) \
+ current_hob)->Name)))
+ return current_hob;
+ break;
+ }
+
+ if (!END_OF_HOB_LIST(current_hob))
+ current_hob = GET_NEXT_HOB(current_hob); /* Get next HOB pointer */
+ } while (!END_OF_HOB_LIST(current_hob));
+
+ return NULL;
+}
+
+/** Compares a pair of GUIDs to see if they are equal
+ *
+ * GUIDs are 128 bits long, so compare them as pairs of quadwords.
+ *
+ * @param guid1 pointer to the first of the GUIDs to compare
+ * @param guid2 pointer to the second of the GUIDs to compare
+ * @return 1 if the GUIDs were equal, 0 if GUIDs were not equal
+ */
+uint8_t guids_are_equal(EFI_GUID *guid1, EFI_GUID *guid2)
+{
+ uint64_t* guid_1 = (void *) guid1;
+ uint64_t* guid_2 = (void *) guid2;
+
+ if ((*(guid_1) != *(guid_2)) || (*(guid_1 + 1) != *(guid_2 + 1)))
+ return 0;
+
+ return 1;
+}
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8101
-gerrit
commit 121152a5bb81444d7eaefcf3f9387cf77fbdc6ae
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Sun Jan 4 16:54:35 2015 -0700
doxygen fixes: fix parameter names to match the functions
The doxygen parameter names in the comments no longer matched the
functions they were attached to. Doxygen complains about extra
parameter comments and uncommented parameters in the functions.
Change-Id: I21b8a951f8d8d04b07c3779000eeaf1e69fed463
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/cpu/allwinner/a10/gpio.c | 2 +-
src/device/device.c | 2 +-
src/device/pci_device.c | 2 +-
src/mainboard/intel/mohonpeak/romstage.c | 2 +-
src/soc/samsung/exynos5250/clock.c | 4 ++--
src/soc/samsung/exynos5420/clock.c | 4 ++--
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/cpu/allwinner/a10/gpio.c b/src/cpu/allwinner/a10/gpio.c
index 295cdf2..5fca2d7 100644
--- a/src/cpu/allwinner/a10/gpio.c
+++ b/src/cpu/allwinner/a10/gpio.c
@@ -68,7 +68,7 @@ int gpio_get(u8 port, u8 pin)
* configured as output pins.
*
* @param[in] port GPIO port of the pin (GPA -> GPS)
- * @param[in] value 32-bit mask indicating which pins to set. For a set bit, the
+ * @param[in] val 32-bit mask indicating which pins to set. For a set bit, the
* corresponding pin will be set. Otherwise, it will be cleared
*/
void gpio_write(u8 port, u32 val)
diff --git a/src/device/device.c b/src/device/device.c
index e068cee..00e323a 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -179,7 +179,7 @@ device_t alloc_find_dev(struct bus *parent, struct device_path *path)
* Round a number up to an alignment.
*
* @param val The starting value.
- * @param roundup Alignment as a power of two.
+ * @param pow Alignment as a power of two.
* @return Rounded up number.
*/
static resource_t round(resource_t val, unsigned long pow)
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index 8351e9c..22454d6 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -1321,7 +1321,7 @@ const char *pin_to_str(int pin)
* device. In this case, this function will return 4 (PIN D).
*
* @param dev A PCI device structure to swizzle interrupt pins for
- * @param *parent_bdg The PCI device structure for the bridge
+ * @param *parent_bridge The PCI device structure for the bridge
* device 'dev' is attached to
* @return The interrupt pin number (1 - 4) that 'dev' will
* trigger when generating an interrupt
diff --git a/src/mainboard/intel/mohonpeak/romstage.c b/src/mainboard/intel/mohonpeak/romstage.c
index b1fb995..ba5091a 100644
--- a/src/mainboard/intel/mohonpeak/romstage.c
+++ b/src/mainboard/intel/mohonpeak/romstage.c
@@ -72,7 +72,7 @@ void late_mainboard_romstage_entry(void)
/**
* Get function disables - most of these will be done automatically
- * @param fd_mask
+ * @param mask pointer to the function-disable bitfield
*/
void get_func_disables(uint32_t *mask)
{
diff --git a/src/soc/samsung/exynos5250/clock.c b/src/soc/samsung/exynos5250/clock.c
index 1de2ab2..a00af02 100644
--- a/src/soc/samsung/exynos5250/clock.c
+++ b/src/soc/samsung/exynos5250/clock.c
@@ -475,8 +475,8 @@ void clock_ll_set_ratio(enum periph_id periph_id, unsigned divisor)
*
* @param main_scalar_bits Number of main scalar bits, must be > 0 and < 32
* @param fine_scalar_bits Number of fine scalar bits, must be > 0 and < 32
- * @param input_freq Clock frequency to be scaled in Hz
- * @param target_freq Desired clock frequency in Hz
+ * @param input_rate Clock frequency to be scaled in Hz
+ * @param target_rate Desired clock frequency in Hz
* @param best_fine_scalar Pointer to store the fine stage divisor
*
* @return best_main_scalar Main scalar for desired frequency or -1 if none
diff --git a/src/soc/samsung/exynos5420/clock.c b/src/soc/samsung/exynos5420/clock.c
index 5bbeb04..5cf3583 100644
--- a/src/soc/samsung/exynos5420/clock.c
+++ b/src/soc/samsung/exynos5420/clock.c
@@ -439,8 +439,8 @@ void clock_ll_set_ratio(enum periph_id periph_id, unsigned divisor)
*
* @param main_scalar_bits Number of main scalar bits, must be > 0 and < 32
* @param fine_scalar_bits Number of fine scalar bits, must be > 0 and < 32
- * @param input_freq Clock frequency to be scaled in Hz
- * @param target_freq Desired clock frequency in Hz
+ * @param input_rate Clock frequency to be scaled in Hz
+ * @param target_rate Desired clock frequency in Hz
* @param best_fine_scalar Pointer to store the fine stage divisor
*
* @return best_main_scalar Main scalar for desired frequency or -1 if none
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8100
-gerrit
commit 41f6beb1d981b386da9e1699bc1f88e3ef0f3e18
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Sun Jan 4 16:47:39 2015 -0700
doxygen fixes: change @var to @param var
These files were trying to document the parameters, but didn't have
the syntax quite right. Change the comments from @varname to
@param varname as required by doxygen.
Change-Id: I63662094d3f1686e3e35b61925b580eb06e72e28
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/drivers/intel/gma/intel_dp.c | 6 +++---
src/drivers/ti/tps65090/tps65090.c | 5 +++--
src/drivers/ti/tps65090/tps65090.h | 20 ++++++++++----------
src/include/spi_flash.h | 6 +++---
src/lib/ramtest.c | 8 ++++----
src/soc/intel/common/hda_verb.c | 8 ++++----
src/soc/qualcomm/ipq806x/timer.c | 2 +-
src/soc/samsung/exynos5250/fb.c | 2 +-
src/southbridge/intel/lynxpoint/hda_verb.c | 8 ++++----
9 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/src/drivers/intel/gma/intel_dp.c b/src/drivers/intel/gma/intel_dp.c
index dc2a957..55839e1 100644
--- a/src/drivers/intel/gma/intel_dp.c
+++ b/src/drivers/intel/gma/intel_dp.c
@@ -38,7 +38,7 @@
/**
* is_edp - is the given port attached to an eDP panel (either CPU or PCH)
- * @intel_dp: DP struct
+ * @param intel_dp: DP struct
*
* If a CPU or PCH DP output is attached to an eDP panel, this function
* will return 1, and 0 otherwise.
@@ -50,7 +50,7 @@ static int is_edp(struct intel_dp *intel_dp)
/**
* is_pch_edp - is the port on the PCH and attached to an eDP panel?
- * @intel_dp: DP struct
+ * @param intel_dp: DP struct
*
* Returns 1 if the given DP struct corresponds to a PCH DP port attached
* to an eDP panel, 0 otherwise. Helpful for determining whether we
@@ -63,7 +63,7 @@ static int is_pch_edp(struct intel_dp *intel_dp)
/**
* is_cpu_edp - is the port on the CPU and attached to an eDP panel?
- * @intel_dp: DP struct
+ * @param intel_dp: DP struct
*
* Returns 1 if the given DP struct corresponds to a CPU eDP port.
*/
diff --git a/src/drivers/ti/tps65090/tps65090.c b/src/drivers/ti/tps65090/tps65090.c
index 35a050f..58bb3ce 100644
--- a/src/drivers/ti/tps65090/tps65090.c
+++ b/src/drivers/ti/tps65090/tps65090.c
@@ -87,8 +87,9 @@ static int tps65090_i2c_read(unsigned int bus,
/**
* Set the power state for a FET
*
- * @fet_id Fet number to set (1..MAX_FET_NUM)
- * @set 1 to power on FET, 0 to power off
+ * @param bus
+ * @param fet_id Fet number to set (1..MAX_FET_NUM)
+ * @param set 1 to power on FET, 0 to power off
* @return FET_ERR_COMMS if we got a comms error, FET_ERR_NOT_READY if the
* FET failed to change state. If all is ok, returns 0.
*/
diff --git a/src/drivers/ti/tps65090/tps65090.h b/src/drivers/ti/tps65090/tps65090.h
index b38db59..a79158b 100644
--- a/src/drivers/ti/tps65090/tps65090.h
+++ b/src/drivers/ti/tps65090/tps65090.h
@@ -67,8 +67,8 @@ enum {
/**
* Enable FET
*
- * @bus I2C bus number the TPS65090 is on
- * @fet_id FET ID, value between 1 and 7
+ * @param bus I2C bus number the TPS65090 is on
+ * @param fet_id FET ID, value between 1 and 7
* return 0 on success, non-0 on failure
*/
int tps65090_fet_enable(unsigned int bus, enum fet_id fet_id);
@@ -76,8 +76,8 @@ int tps65090_fet_enable(unsigned int bus, enum fet_id fet_id);
/**
* Disable FET
*
- * @bus I2C bus number the TPS65090 is on
- * @fet_id FET ID, value between 1 and 7
+ * @param bus I2C bus number the TPS65090 is on
+ * @param fet_id FET ID, value between 1 and 7
* @return 0 on success, non-0 on failure
*/
int tps65090_fet_disable(unsigned int bus, enum fet_id fet_id);
@@ -85,8 +85,8 @@ int tps65090_fet_disable(unsigned int bus, enum fet_id fet_id);
/**
* Is FET enabled?
*
- * @bus I2C bus number the TPS65090 is on
- * @fet_id FET ID, value between 1 and 7
+ * @param bus I2C bus number the TPS65090 is on
+ * @param fet_id FET ID, value between 1 and 7
* @return 1 enabled, 0 disabled, negative value on failure
*/
int tps65090_fet_is_enabled(unsigned int bus, enum fet_id fet_id);
@@ -94,15 +94,15 @@ int tps65090_fet_is_enabled(unsigned int bus, enum fet_id fet_id);
/**
* Enable / disable the battery charger
*
- * @bus I2C bus number the TPS65090 is on
- * @enable 0 to disable charging, non-zero to enable
+ * @param bus I2C bus number the TPS65090 is on
+ * @param enable 0 to disable charging, non-zero to enable
*/
int tps65090_set_charge_enable(unsigned int bus, int enable);
/**
* Check whether we have enabled battery charging
*
- * @bus I2C bus number the TPS65090 is on
+ * @param bus I2C bus number the TPS65090 is on
* @return 1 if enabled, 0 if disabled
*/
int tps65090_is_charging(unsigned int bus);
@@ -110,7 +110,7 @@ int tps65090_is_charging(unsigned int bus);
/**
* Return the value of the status register
*
- * @bus I2C bus number the TPS65090 is on
+ * @param bus I2C bus number the TPS65090 is on
* @return status register value, or -1 on error
*/
int tps65090_get_status(unsigned int bus);
diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h
index 70ca784..7e430d0 100644
--- a/src/include/spi_flash.h
+++ b/src/include/spi_flash.h
@@ -30,9 +30,9 @@
/**
* container_of - cast a member of a structure out to the containing structure
- * @ptr: the pointer to the member.
- * @type: the type of the container struct this is embedded in.
- * @member: the name of the member within the struct.
+ * @param ptr: the pointer to the member.
+ * @param type: the type of the container struct this is embedded in.
+ * @param member: the name of the member within the struct.
*
*/
#define container_of(ptr, type, member) ({ \
diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c
index e9173fa..03c4aa7 100644
--- a/src/lib/ramtest.c
+++ b/src/lib/ramtest.c
@@ -52,9 +52,9 @@ static void phys_memory_barrier(void)
* memory bus. To test most address lines, addresses are scattered
* using 256B, 4kB and 64kB increments.
*
- * @idx Index to test pattern (0=<idx<0x400)
- * @addr Memory to access on @idx
- * @value Value to write or read at @addr
+ * @param idx Index to test pattern (0=<idx<0x400)
+ * @param addr Memory to access on idx
+ * @param value Value to write or read at addr
*/
static inline void test_pattern(unsigned short int idx,
unsigned long *addr, unsigned long *value)
@@ -74,7 +74,7 @@ static inline void test_pattern(unsigned short int idx,
* Simple write-read-verify memory test. See console debug output for
* any dislocated bytes.
*
- * @start System memory offset, aligned to 128bytes
+ * @param start System memory offset, aligned to 128bytes
*/
static int ram_bitset_nodie(unsigned long start)
{
diff --git a/src/soc/intel/common/hda_verb.c b/src/soc/intel/common/hda_verb.c
index 6404ee2..946972e 100644
--- a/src/soc/intel/common/hda_verb.c
+++ b/src/soc/intel/common/hda_verb.c
@@ -139,10 +139,10 @@ static int hda_wait_for_valid(u32 base)
/**
* Find a specific entry within a verb table
*
- * @verb_table_bytes: verb table size in bytes
- * @verb_table_data: verb table data
- * @viddid: vendor/device to search for
- * @verb_out: pointer to entry within table
+ * @param verb_table_bytes: verb table size in bytes
+ * @param verb_table_data: verb table data
+ * @param viddid: vendor/device to search for
+ * @param verb: pointer to entry within table
*
* Returns size of the entry within the verb table,
* Returns 0 if the entry is not found
diff --git a/src/soc/qualcomm/ipq806x/timer.c b/src/soc/qualcomm/ipq806x/timer.c
index 676c7f5..3cb9531 100644
--- a/src/soc/qualcomm/ipq806x/timer.c
+++ b/src/soc/qualcomm/ipq806x/timer.c
@@ -50,7 +50,7 @@ void init_timer(void)
/**
* udelay - generates micro second delay.
- * @usec: delay duration in microseconds
+ * @param usec: delay duration in microseconds
*
* With 32KHz clock, minimum possible delay is 31.25 Micro seconds and
* its multiples. In Rumi GPT clock is 32 KHz
diff --git a/src/soc/samsung/exynos5250/fb.c b/src/soc/samsung/exynos5250/fb.c
index 080be49..e0355fc 100644
--- a/src/soc/samsung/exynos5250/fb.c
+++ b/src/soc/samsung/exynos5250/fb.c
@@ -114,7 +114,7 @@ static void fimd_bypass(void)
* Initialize display controller.
*
* @param lcdbase pointer to the base address of framebuffer.
- * @pd pointer to the main panel_data structure
+ * @param pd pointer to the main panel_data structure
*/
void fb_init(unsigned long int fb_size, void *lcdbase,
struct exynos5_fimd_panel *pd)
diff --git a/src/southbridge/intel/lynxpoint/hda_verb.c b/src/southbridge/intel/lynxpoint/hda_verb.c
index 234a1ab..424deb5 100644
--- a/src/southbridge/intel/lynxpoint/hda_verb.c
+++ b/src/southbridge/intel/lynxpoint/hda_verb.c
@@ -140,10 +140,10 @@ static int hda_wait_for_valid(u32 base)
/**
* Find a specific entry within a verb table
*
- * @verb_table_bytes: verb table size in bytes
- * @verb_table_data: verb table data
- * @viddid: vendor/device to search for
- * @verb_out: pointer to entry within table
+ * @param verb_table_bytes: verb table size in bytes
+ * @param verb_table_data: verb table data
+ * @param viddid: vendor/device to search for
+ * @param **verb: pointer to entry within table
*
* Returns size of the entry within the verb table,
* Returns 0 if the entry is not found
Martin Roth (gaumless(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8099
-gerrit
commit e1d2494ba69117a7387930eb23851c36c3f1564d
Author: Martin Roth <martin.roth(a)se-eng.com>
Date: Sun Jan 4 15:29:08 2015 -0700
AMD Mainboards - rd890_cfg.h: fix Doxygen errors.
Doxygen gives an error when processing #defines inside doxygen comments.
Normal comments are ignored. The choice for this fix was to make this
a standard comment starting with '/*' instead of '/**', or to make the
comment not a #define.
Change-Id: I97fbbcea6f045d80ec7c0ab5e196d57e5da16d86
Signed-off-by: Martin Roth <martin.roth(a)se-eng.com>
---
src/mainboard/amd/dinar/rd890_cfg.h | 2 +-
src/mainboard/supermicro/h8qgi/rd890_cfg.h | 2 +-
src/mainboard/supermicro/h8scm/rd890_cfg.h | 2 +-
src/mainboard/tyan/s8226/rd890_cfg.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mainboard/amd/dinar/rd890_cfg.h b/src/mainboard/amd/dinar/rd890_cfg.h
index 71cac2e..1743474 100644
--- a/src/mainboard/amd/dinar/rd890_cfg.h
+++ b/src/mainboard/amd/dinar/rd890_cfg.h
@@ -67,7 +67,7 @@
/**
* Bitmap of ports that have slot or onboard device connected.
* Example force PCIe Gen1 supporton port 2 and 4 (DEFAULT_PORT_ENABLE_MAP = BIT2 | BIT4)
- * #define DEFAULT_PORT_FORCE_GEN1 0x604
+ * define DEFAULT_PORT_FORCE_GEN1 0x604
*/
#ifndef DEFAULT_PORT_FORCE_GEN1
#define DEFAULT_PORT_FORCE_GEN1 0x0
diff --git a/src/mainboard/supermicro/h8qgi/rd890_cfg.h b/src/mainboard/supermicro/h8qgi/rd890_cfg.h
index 8547faa..d74cb93 100644
--- a/src/mainboard/supermicro/h8qgi/rd890_cfg.h
+++ b/src/mainboard/supermicro/h8qgi/rd890_cfg.h
@@ -66,7 +66,7 @@
/**
* Bitmap of ports that have slot or onboard device connected.
* Example force PCIe Gen1 supporton port 2 and 4 (DEFAULT_PORT_ENABLE_MAP = BIT2 | BIT4)
- * #define DEFAULT_PORT_FORCE_GEN1 0x604
+ * define DEFAULT_PORT_FORCE_GEN1 0x604
*/
#ifndef DEFAULT_PORT_FORCE_GEN1
#define DEFAULT_PORT_FORCE_GEN1 0x0
diff --git a/src/mainboard/supermicro/h8scm/rd890_cfg.h b/src/mainboard/supermicro/h8scm/rd890_cfg.h
index 8547faa..d74cb93 100644
--- a/src/mainboard/supermicro/h8scm/rd890_cfg.h
+++ b/src/mainboard/supermicro/h8scm/rd890_cfg.h
@@ -66,7 +66,7 @@
/**
* Bitmap of ports that have slot or onboard device connected.
* Example force PCIe Gen1 supporton port 2 and 4 (DEFAULT_PORT_ENABLE_MAP = BIT2 | BIT4)
- * #define DEFAULT_PORT_FORCE_GEN1 0x604
+ * define DEFAULT_PORT_FORCE_GEN1 0x604
*/
#ifndef DEFAULT_PORT_FORCE_GEN1
#define DEFAULT_PORT_FORCE_GEN1 0x0
diff --git a/src/mainboard/tyan/s8226/rd890_cfg.h b/src/mainboard/tyan/s8226/rd890_cfg.h
index 8547faa..d74cb93 100644
--- a/src/mainboard/tyan/s8226/rd890_cfg.h
+++ b/src/mainboard/tyan/s8226/rd890_cfg.h
@@ -66,7 +66,7 @@
/**
* Bitmap of ports that have slot or onboard device connected.
* Example force PCIe Gen1 supporton port 2 and 4 (DEFAULT_PORT_ENABLE_MAP = BIT2 | BIT4)
- * #define DEFAULT_PORT_FORCE_GEN1 0x604
+ * define DEFAULT_PORT_FORCE_GEN1 0x604
*/
#ifndef DEFAULT_PORT_FORCE_GEN1
#define DEFAULT_PORT_FORCE_GEN1 0x0