OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [char/] [ftape/] [Makefile] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
#
2
# Makefile for the ftape device driver.
3
#
4
# Note! Dependencies are done automagically by 'make dep', which also
5
# removes any old dependencies. DON'T put your own dependencies here
6
# unless it's something special (ie not a .c file).
7
#
8
# Note 2! The CFLAGS definitions are now inherited from the
9
# parent makes..
10
#
11
 
12
#  Valid ftape options are:
13
#       NO_TRACE        - if defined, only information and errors show up.
14
#       NO_TRACE_AT_ALL - if defined, no trace output shows up.
15
#       GCC_2_4_5_BUG   - must be set if using gcc-2.4.5 to prevent
16
#                         bad assembler-code for the dma handling.
17
#       NR_BUFFERS      - Number of ftape DMA buffers (keep it at 3!)
18
#       VERIFY_HEADERS  - if set the headers segments are verified after
19
#                         being written.
20
#       PROBE_FC10      - if defined will look for a FC-10 card at specified
21
#                         settings (FDC_BASE,FDC_IRQ,FDC_DMA) before using
22
#                         the standard fd controller.
23
#       FDC_BASE        - sets base address (only!) if using non-standard fdc
24
#       FDC_IRQ         - sets interrupt if FDC_BASE is defined
25
#       FDC_DMA         - sets dma channel if FDC_BASE is defined
26
#       MACH2           - Support for Mountain MACH-2 controller at either 1E0
27
#                         or 3E0, don't forget the FDC_OPT's !
28
#       CLK_48MHZ       - Set to 1. If you have a i82078-1 FDC and it does not
29
#                         work, try setting it to 0. (only used for i82078-1's)
30
#       FDC_82078SL     - If you have a 82078SL, define this.
31
 
32
FTAPE_OPT       = -DVERIFY_HEADERS -DNR_BUFFERS=3 -DCLK_48MHZ=1 \
33
        -DNO_TRACE -DFDC_82078SL
34
 
35
#  If you're using a non-standard floppy disk controller for the
36
#  tape drive, enable one (only!) of the following lines and set
37
#  the FDC_BASE, FDC_IRQ and FDC_DMA parameters to the actual values.
38
#
39
#  Note1: A FC-10/FC-20 controller must use either of DMA 1, 2, or 3.
40
#         DMA 5 and 7 does NOT work!.
41
#
42
#  Note2: IRQ 2 and IRQ 9 can be considered the same. When using IRQ 2
43
#         on a controller you must specify IRQ 9 here!
44
#
45
# For a Mountain MACH-2 controller, try
46
#FDC_OPT         = -DMACH2 -DFDC_BASE=0x1E0 -DFDC_IRQ=6 -DFDC_DMA=2
47
#
48
# For Colorado CMS FC-10 or FC-20 controllers:
49
#FDC_OPT         = -DPROBE_FC10 -DFDC_BASE=0x180 -DFDC_IRQ=9 -DFDC_DMA=3
50
#
51
# Secondary floppy disk controller:
52
#FDC_OPT         = -DFDC_BASE=0x370 -DFDC_IRQ=9 -DFDC_DMA=3
53
#
54
# This enables some (most?) 2Mbps controllers:
55
#FDC_OPT         = -DFDC_BASE=0x3E0 -DFDC_IRQ=6 -DFDC_DMA=2
56
 
57
EXTRA_CFLAGS := $(FTAPE_OPT) $(FDC_OPT)
58
 
59
O_TARGET := ftape.o
60
O_OBJS   = kernel-interface.o tracing.o fdc-io.o fdc-isr.o \
61
           ftape-bsm.o ftape-ctl.o ftape-eof.o ftape-read.o ftape-rw.o \
62
           ftape-write.o ftape-io.o calibr.o ecc.o fc-10.o
63
M_OBJS   = $(O_TARGET)
64
 
65
include $(TOPDIR)/Rules.make

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.