From 113961a0d96cfd0a7f913d487c3f1d9c6e8ca62b Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Wed, 21 Dec 2022 03:23:47 -0500 Subject: [PATCH] Fix PCNet PR formatting. --- src/Home/Net/Drivers/PCNet.ZC | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Home/Net/Drivers/PCNet.ZC b/src/Home/Net/Drivers/PCNet.ZC index 28b37432..26b09f1d 100644 --- a/src/Home/Net/Drivers/PCNet.ZC +++ b/src/Home/Net/Drivers/PCNet.ZC @@ -23,7 +23,7 @@ #define PCNET_DW_RDP 0x10 #define PCNET_DW_RAP 0x14 -#define PCNET_DW_BDP 0x1c +#define PCNET_DW_BDP 0x1C #define PCNET_DW_RESET 0x18 // reset reg location when card is in 32-bit mode #define PCNET_BCR_MISC_CONFIG 2 @@ -215,16 +215,20 @@ U32 PCNetCSRRead(U32 csr) U0 PCNetAutoLinkSelect() { U32 bcr = PCNetCSRRead(PCNET_BCR_FULL_DUPLEX_CTRL); - Bts(&bcr,PCNET_BCR_FULL_DUPLEX_CTRL_FDEN); - Bts(&bcr,PCNET_BCR_FULL_DUPLEX_CTRL_AUIFD); - PCNetBCRWrite(PCNET_BCR_FULL_DUPLEX_CTRL,bcr); + + Bts(&bcr, PCNET_BCR_FULL_DUPLEX_CTRL_FDEN); + Bts(&bcr, PCNET_BCR_FULL_DUPLEX_CTRL_AUIFD); + + PCNetBCRWrite(PCNET_BCR_FULL_DUPLEX_CTRL, bcr); } U0 PCNetEnableFullDuplex() { U32 bcr = PCNetCSRRead(PCNET_BCR_MISC_CONFIG); - Bts(&bcr,PCNET_BCR_MISC_CONFIG_ASEL); - PCNetBCRWrite(PCNET_BCR_MISC_CONFIG,bcr); + + Bts(&bcr, PCNET_BCR_MISC_CONFIG_ASEL); + + PCNetBCRWrite(PCNET_BCR_MISC_CONFIG, bcr); }