diff --git a/.gitignore b/.gitignore index c6127b3..8069f56 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,5 @@ modules.order Module.symvers Mkfile.old dkms.conf + +bin diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..39841c8 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +.PHONY: all clean + +CC = qcc # ntox86-gcc +CXX = g++ +LFLAGS = -Wall #-Vgcc_ntox86 +LIBS = #-l socket + +BIN_PATH = ./bin +SOURCE_PATH = ./src + +TARGET = $(BIN_PATH)/pcirw + +SRCS = $(SOURCE_PATH)/main.c + +all: + mkdir -p $(BIN_PATH) + $(CXX) $(LFLAGS) -o $(TARGET) $(SRCS) $(LIBS) + +$(BIN_PATH): + mkdir -p $(BIN_PATH) + +clean: + rm -f $(TARGET) + + + + diff --git a/README.md b/README.md index 38dbc8d..cd2783e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # pcirw QNX6 program for work with PCI devices +It uses for + - reading PCI configuration space + - writing PCI configuration space + - reading PCI devices + - writing PCI devices diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..7a62f8c --- /dev/null +++ b/src/main.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, char *argv[]) +{ + puts("Hallo, Welt!"); + return 0; +}