ac97: Port to Linux

This commit is contained in:
RichardG867
2023-05-03 20:43:31 -03:00
parent b96f6e4ac4
commit 715ee3c0f9
3 changed files with 25 additions and 1 deletions

2
.gitignore vendored
View File

@@ -24,4 +24,6 @@ pci?????.bin
*.exe
*.com
*.efi
pcireg/pcireg
ac97/ac97
PCIIDS.BIN

22
ac97/Makefile.gcc Normal file
View File

@@ -0,0 +1,22 @@
#
# 86Box A hypervisor and IBM PC system emulator that specializes in
# running old operating systems and software designed for IBM
# PC systems and compatibles from 1981 through fairly recent
# system designs based on the PCI bus.
#
# This file is part of the 86Box Probing Tools distribution.
#
# Makefile for compiling C-based tools with gcc.
#
#
#
# Authors: RichardG, <richardg867@gmail.com>
#
# Copyright 2023 RichardG.
#
export OBJS = ac97.o clib_pci.o clib_sys.o clib_term.o
export DEST = ac97
export CFLAGS = -lpci
include ../clib/gcc.mk

View File

@@ -519,7 +519,7 @@ main(int argc, char **argv)
return 1;
/* Set silent mode. */
if ((argc >= 1) && !strcmp(argv[1], "-s"))
if ((argc > 1) && !strcmp(argv[1], "-s"))
silent = 1;
/* Scan PCI bus 0. */