Add write_devices_dat shell command, 043_#acpi_m012.t test
This commit is contained in:
parent
3d50050c6b
commit
42c1c55029
11
makefile
11
makefile
@ -18,22 +18,22 @@ covpreproc: covpreproc.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
||||
|
||||
umka_shell: umka_shell.o umka.o shell.o trace.o trace_lbr.o vdisk.o vnet.o \
|
||||
lodepng.o pci.o thread.o
|
||||
lodepng.o pci.o thread.o util.o
|
||||
$(CC) $(LDFLAGS_32) $^ -o $@ -static -T umka.ld
|
||||
|
||||
umka_fuse: umka_fuse.o umka.o trace.o trace_lbr.o vdisk.o pci.o thread.o
|
||||
$(CC) $(LDFLAGS_32) $^ -o $@ `pkg-config fuse3 --libs` -T umka.ld
|
||||
|
||||
umka_os: umka_os.o umka.o shell.o lodepng.o vdisk.o vnet.o trace.o trace_lbr.o \
|
||||
pci.o thread.o umka_ping.o
|
||||
pci.o thread.o umka_ping.o util.o
|
||||
$(CC) $(LDFLAGS_32) $^ -o $@ -static -T umka.ld
|
||||
|
||||
umka_gen_devices_dat: umka_gen_devices_dat.o umka.o pci.o thread.o
|
||||
umka_gen_devices_dat: umka_gen_devices_dat.o umka.o pci.o thread.o util.o
|
||||
$(CC) $(LDFLAGS_32) $^ -o $@ -static -T umka.ld
|
||||
|
||||
umka.o umka.fas: umka.asm
|
||||
INCLUDE="$(KOLIBRIOS)/kernel/trunk;$(KOLIBRIOS)/programs/develop/libraries/libcrash/hash" \
|
||||
$(FASM) $< umka.o -s umka.fas -m 1234567
|
||||
$(FASM) $< umka.o -s umka.fas -m 2000000
|
||||
|
||||
shell.o: shell.c
|
||||
$(CC) $(CFLAGS_32) -c $<
|
||||
@ -47,6 +47,9 @@ pci.o: linux/pci.c
|
||||
lodepng.o: lodepng.c lodepng.h
|
||||
$(CC) $(CFLAGS_32) -c $<
|
||||
|
||||
util.o: util.c util.h umka.h
|
||||
$(CC) $(CFLAGS_32) -c $<
|
||||
|
||||
default.skn: $(KOLIBRIOS)/skins/Leency/Shkvorka/default.asm
|
||||
$(FASM) $< $@
|
||||
|
||||
|
16
shell.c
16
shell.c
@ -43,6 +43,7 @@
|
||||
#include "umka.h"
|
||||
#include "trace.h"
|
||||
#include "pci.h"
|
||||
#include "util.h"
|
||||
#include "lodepng.h"
|
||||
|
||||
#define PATH_MAX 4096
|
||||
@ -1395,6 +1396,20 @@ shell_blit_bitmap(int argc, char **argv) {
|
||||
free(image);
|
||||
}
|
||||
|
||||
static void
|
||||
shell_write_devices_dat(int argc, char **argv) {
|
||||
const char *usage = \
|
||||
"usage: write_devices_dat <file>\n"
|
||||
" file path/to/devices.dat";
|
||||
if (argc != 2) {
|
||||
fputs(usage, fout);
|
||||
return;
|
||||
}
|
||||
COVERAGE_ON();
|
||||
dump_devices_dat(argv[1]);
|
||||
COVERAGE_OFF();
|
||||
}
|
||||
|
||||
static void
|
||||
shell_scrot(int argc, char **argv) {
|
||||
const char *usage = \
|
||||
@ -2780,6 +2795,7 @@ func_table_t shell_cmds[] = {
|
||||
{ "read70", shell_read70 },
|
||||
{ "read80", shell_read80 },
|
||||
{ "scrot", shell_scrot },
|
||||
{ "write_devices_dat", shell_write_devices_dat },
|
||||
{ "set_button_style", shell_set_button_style },
|
||||
{ "set_cwd", shell_cd },
|
||||
{ "set_font_size", shell_set_font_size },
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -3069,15 +3069,12 @@ name_string: \PCI0DV00DV0A
|
||||
aml._.name_string end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.name end
|
||||
aml._.namespace_modifier_obj end
|
||||
@ -3489,15 +3486,12 @@ name_string: ^PCI0DV00DV0A
|
||||
aml._.name_string end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.name end
|
||||
aml._.namespace_modifier_obj end
|
||||
@ -5137,4 +5131,4 @@ nodes allocated: 197
|
||||
/> acpi_get_node_free_cnt
|
||||
nodes freed: 0
|
||||
/> acpi_get_node_cnt
|
||||
nodes in namespace: 109
|
||||
nodes in namespace: 110
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -105,7 +105,7 @@ nodes allocated: 11
|
||||
/> acpi_get_node_free_cnt
|
||||
nodes freed: 0
|
||||
/> acpi_get_node_cnt
|
||||
nodes in namespace: 9
|
||||
nodes in namespace: 10
|
||||
|
||||
/> acpi_call \MAIN
|
||||
acpi.call_name begin
|
||||
@ -457,4 +457,4 @@ nodes allocated: 29
|
||||
/> acpi_get_node_free_cnt
|
||||
nodes freed: 0
|
||||
/> acpi_get_node_cnt
|
||||
nodes in namespace: 9
|
||||
nodes in namespace: 10
|
||||
|
@ -1796,7 +1796,7 @@ nodes allocated: 105
|
||||
/> acpi_get_node_free_cnt
|
||||
nodes freed: 0
|
||||
/> acpi_get_node_cnt
|
||||
nodes in namespace: 33
|
||||
nodes in namespace: 34
|
||||
|
||||
/> acpi_call \MAIN
|
||||
acpi.call_name begin
|
||||
@ -2222,4 +2222,4 @@ nodes allocated: 121
|
||||
/> acpi_get_node_free_cnt
|
||||
nodes freed: 0
|
||||
/> acpi_get_node_cnt
|
||||
nodes in namespace: 33
|
||||
nodes in namespace: 34
|
||||
|
@ -1220,7 +1220,6 @@ aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.name end
|
||||
aml._.namespace_modifier_obj end
|
||||
@ -4419,7 +4418,6 @@ aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.name end
|
||||
aml._.namespace_modifier_obj end
|
||||
@ -4487,7 +4485,6 @@ aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.name end
|
||||
aml._.namespace_modifier_obj end
|
||||
@ -4555,7 +4552,6 @@ aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.package_element_list_defer end
|
||||
aml._.package end
|
||||
aml._.data_object end
|
||||
aml._.data_ref_object end
|
||||
aml._.name end
|
||||
aml._.namespace_modifier_obj end
|
||||
@ -356861,4 +356857,4 @@ nodes allocated: 30850
|
||||
/> acpi_get_node_free_cnt
|
||||
nodes freed: 771
|
||||
/> acpi_get_node_cnt
|
||||
nodes in namespace: 282
|
||||
nodes in namespace: 283
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
202168
test/043_#acpi_m012.ref.log
Normal file
202168
test/043_#acpi_m012.ref.log
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,4 @@
|
||||
umka_init
|
||||
pci_set_path machines/012/pci
|
||||
acpi_set_usage 2
|
||||
|
||||
@ -14,3 +15,4 @@ acpi_enable
|
||||
acpi_get_node_alloc_cnt
|
||||
acpi_get_node_free_cnt
|
||||
acpi_get_node_cnt
|
||||
#write_devices_dat devices.dat
|
BIN
test/machines/012/pci/0000:00:00.0/config
Normal file
BIN
test/machines/012/pci/0000:00:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:00.2/config
Normal file
BIN
test/machines/012/pci/0000:00:00.2/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:00.2/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:00.2/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:01.0/config
Normal file
BIN
test/machines/012/pci/0000:00:01.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:01.1/config
Normal file
BIN
test/machines/012/pci/0000:00:01.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:01.1/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:01.1/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:01.2/config
Normal file
BIN
test/machines/012/pci/0000:00:01.2/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:01.2/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:01.2/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:02.0/config
Normal file
BIN
test/machines/012/pci/0000:00:02.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:03.0/config
Normal file
BIN
test/machines/012/pci/0000:00:03.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:03.1/config
Normal file
BIN
test/machines/012/pci/0000:00:03.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:03.1/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:03.1/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:04.0/config
Normal file
BIN
test/machines/012/pci/0000:00:04.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:05.0/config
Normal file
BIN
test/machines/012/pci/0000:00:05.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:07.0/config
Normal file
BIN
test/machines/012/pci/0000:00:07.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:07.1/config
Normal file
BIN
test/machines/012/pci/0000:00:07.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:07.1/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:07.1/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.0/config
Normal file
BIN
test/machines/012/pci/0000:00:08.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.1/config
Normal file
BIN
test/machines/012/pci/0000:00:08.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.1/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:08.1/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.2/config
Normal file
BIN
test/machines/012/pci/0000:00:08.2/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.2/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:08.2/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.3/config
Normal file
BIN
test/machines/012/pci/0000:00:08.3/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:08.3/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:08.3/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:14.0/config
Normal file
BIN
test/machines/012/pci/0000:00:14.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:14.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:14.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:14.3/config
Normal file
BIN
test/machines/012/pci/0000:00:14.3/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:14.3/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:00:14.3/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.0/config
Normal file
BIN
test/machines/012/pci/0000:00:18.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.1/config
Normal file
BIN
test/machines/012/pci/0000:00:18.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.2/config
Normal file
BIN
test/machines/012/pci/0000:00:18.2/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.3/config
Normal file
BIN
test/machines/012/pci/0000:00:18.3/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.4/config
Normal file
BIN
test/machines/012/pci/0000:00:18.4/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.5/config
Normal file
BIN
test/machines/012/pci/0000:00:18.5/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.6/config
Normal file
BIN
test/machines/012/pci/0000:00:18.6/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:00:18.7/config
Normal file
BIN
test/machines/012/pci/0000:00:18.7/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:01:00.0/config
Normal file
BIN
test/machines/012/pci/0000:01:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:20:00.0/config
Normal file
BIN
test/machines/012/pci/0000:20:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:20:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:20:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:02.0/config
Normal file
BIN
test/machines/012/pci/0000:21:02.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:02.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:21:02.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:03.0/config
Normal file
BIN
test/machines/012/pci/0000:21:03.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:03.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:21:03.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:04.0/config
Normal file
BIN
test/machines/012/pci/0000:21:04.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:04.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:21:04.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:05.0/config
Normal file
BIN
test/machines/012/pci/0000:21:05.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:05.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:21:05.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:06.0/config
Normal file
BIN
test/machines/012/pci/0000:21:06.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:06.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:21:06.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:08.0/config
Normal file
BIN
test/machines/012/pci/0000:21:08.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:08.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:21:08.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:09.0/config
Normal file
BIN
test/machines/012/pci/0000:21:09.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:21:0a.0/config
Normal file
BIN
test/machines/012/pci/0000:21:0a.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:24:00.0/config
Normal file
BIN
test/machines/012/pci/0000:24:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:24:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:24:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:25:00.0/config
Normal file
BIN
test/machines/012/pci/0000:25:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:25:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:25:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:26:01.0/config
Normal file
BIN
test/machines/012/pci/0000:26:01.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:26:03.0/config
Normal file
BIN
test/machines/012/pci/0000:26:03.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:26:05.0/config
Normal file
BIN
test/machines/012/pci/0000:26:05.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:26:07.0/config
Normal file
BIN
test/machines/012/pci/0000:26:07.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2b:00.0/config
Normal file
BIN
test/machines/012/pci/0000:2b:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2b:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:2b:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2c:00.0/config
Normal file
BIN
test/machines/012/pci/0000:2c:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2c:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:2c:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2d:00.0/config
Normal file
BIN
test/machines/012/pci/0000:2d:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2d:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:2d:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2e:00.0/config
Normal file
BIN
test/machines/012/pci/0000:2e:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2e:00.1/config
Normal file
BIN
test/machines/012/pci/0000:2e:00.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2e:00.1/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:2e:00.1/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2e:00.3/config
Normal file
BIN
test/machines/012/pci/0000:2e:00.3/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2e:00.3/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:2e:00.3/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:2f:00.0/config
Normal file
BIN
test/machines/012/pci/0000:2f:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:30:00.0/config
Normal file
BIN
test/machines/012/pci/0000:30:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:31:00.0/config
Normal file
BIN
test/machines/012/pci/0000:31:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:31:00.1/config
Normal file
BIN
test/machines/012/pci/0000:31:00.1/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:32:00.0/config
Normal file
BIN
test/machines/012/pci/0000:32:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:32:00.0/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:32:00.0/firmware_node/path
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:33:00.0/config
Normal file
BIN
test/machines/012/pci/0000:33:00.0/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:33:00.3/config
Normal file
BIN
test/machines/012/pci/0000:33:00.3/config
Normal file
Binary file not shown.
BIN
test/machines/012/pci/0000:33:00.3/firmware_node/path
Normal file
BIN
test/machines/012/pci/0000:33:00.3/firmware_node/path
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user