mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 01:07:01 +00:00
Additional build and ONLPv2 fixes.
This commit is contained in:
@@ -27,7 +27,7 @@ include $(ONL)/make/any.mk
|
||||
MODULE := oom_shim
|
||||
include $(BUILDER)/standardinit.mk
|
||||
|
||||
DEPENDMODULES := AIM onlplib oom_shim cjson cjson_util IOF timer_wheel OS uCli
|
||||
DEPENDMODULES := AIM onlplib oom_shim cjson cjson_util IOF timer_wheel OS uCli ELS
|
||||
DEPENDMODULE_HEADERS := onlp sff
|
||||
|
||||
LIBONLP := $(shell $(ONLPM) --find-file onlp:$(ARCH) libonlp.so)
|
||||
|
||||
@@ -101,9 +101,9 @@ int oom_get_memory_sff(oom_port_t* port, int address, int page, int offset, int
|
||||
**/
|
||||
|
||||
if (address == 0xa0) {
|
||||
rv = onlp_sfp_dev_read_block(port_num, 0x50, 0, 256, &idprom);
|
||||
rv = onlp_sfp_dev_alloc_read(port_num, 0x50, 0, 256, &idprom);
|
||||
} else if (address == 0xa2) {
|
||||
rv = onlp_sfp_dev_read_block(port_num, 0x51, 0, 256, &idprom);
|
||||
rv = onlp_sfp_dev_alloc_read(port_num, 0x51, 0, 256, &idprom);
|
||||
} else {
|
||||
aim_printf(&aim_pvs_stdout, "Error invalid address: 0x%02x\n", address);
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user