summaryrefslogtreecommitdiff
path: root/drivers/net/fm/fm.h
diff options
context:
space:
mode:
authorHou Zhiqiang <B48286@freescale.com>2015-10-26 11:47:44 (GMT)
committerYork Sun <yorksun@freescale.com>2015-10-29 17:33:59 (GMT)
commit9fc29db116d147adbee0ad07b0e72a657f961305 (patch)
tree05a2a175e05611b2cab9c260072dd49397b114bb /drivers/net/fm/fm.h
parent648bde6d70ac94685ed454cb938e44454190f19a (diff)
downloadu-boot-fsl-qoriq-9fc29db116d147adbee0ad07b0e72a657f961305.tar.xz
net/fm: Add support for 64-bit platforms
The FMan IM driver is developed for 32-bit platfroms and isn't friendly to 64-bit platforms, so do the minimal refactor: 1. Refine the MURAM management and access. 2. Correct the initialization and operations for QDs and BDs. Signed-off-by: Hou Zhiqiang <B48286@freescale.com> Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/net/fm/fm.h')
-rw-r--r--drivers/net/fm/fm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/fm/fm.h b/drivers/net/fm/fm.h
index a9691c6..73c525e 100644
--- a/drivers/net/fm/fm.h
+++ b/drivers/net/fm/fm.h
@@ -26,10 +26,10 @@
#define MIIM_TIMEOUT 0xFFFF
struct fm_muram {
- u32 base;
- u32 top;
- u32 size;
- u32 alloc;
+ void *base;
+ void *top;
+ size_t size;
+ void *alloc;
};
#define FM_MURAM_RES_SIZE 0x01000
@@ -95,8 +95,8 @@ struct fm_port_global_pram {
#endif
#define FM_FREE_POOL_ALIGN 256
-u32 fm_muram_alloc(int fm_idx, u32 size, u32 align);
-u32 fm_muram_base(int fm_idx);
+void *fm_muram_alloc(int fm_idx, size_t size, ulong align);
+void *fm_muram_base(int fm_idx);
int fm_init_common(int index, struct ccsr_fman *reg);
int fm_eth_initialize(struct ccsr_fman *reg, struct fm_eth_info *info);
phy_interface_t fman_port_enet_if(enum fm_port port);