Additional build and ONLPv2 fixes.

This commit is contained in:
Jeffrey Townsend
2018-08-08 01:17:51 +00:00
parent 062b6fc1bf
commit fe94151850
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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;