source: svn/trunk/newcon3bcm2_21bu/magnum/portinginterface/xpt/bxpt.inc @ 6

Last change on this file since 6 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 30.8 KB
Line 
1############################################################
2#     Copyright (c) 2003-2012, Broadcom Corporation
3#     All Rights Reserved
4#     Confidential Property of Broadcom Corporation
5#
6#  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7#  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8#  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9#
10# $brcm_Workfile: bxpt.inc $
11# $brcm_Revision: Hydra_Software_Devel/80 $
12# $brcm_Date: 2/20/12 11:32a $
13#
14# Module Description:
15#
16# Revision History:
17#
18# Created: 01/09/2007 by Jon Garrett
19#
20# $brcm_Log: /magnum/portinginterface/xpt/bxpt.inc $
21#
22# Hydra_Software_Devel/80   2/20/12 11:32a gmullen
23# SW7231-565: Fixed typo in inclusion of bxpt_tsmux
24#
25# Hydra_Software_Devel/79   2/17/12 1:55p katrep
26# SW7231-565:7231 b2 build
27#
28# Hydra_Software_Devel/78   1/11/12 9:06a gmullen
29# SW7360-1: Added 7360 to the chip list
30#
31# Hydra_Software_Devel/77   1/4/12 11:34a gmullen
32# SW7435-10: Merged addition of 7435 to build
33#
34# Hydra_Software_Devel/SW7435-10/1   10/31/11 3:50p mward
35# SW7435-10:  Initial 7435 support adapted from 7425 to allow
36# appframework to compile.
37#
38# Hydra_Software_Devel/76   1/2/12 3:12p gmullen
39# SW7360-1: Added support
40#
41# Hydra_Software_Devel/75   12/9/11 11:19a jtna
42# SW7425-1863: compile bxpt_pwr_mgmt.c for 7231 and others
43#
44# Hydra_Software_Devel/74   12/2/11 12:12p jtna
45# SW7425-1863: refactor xpt standby power management
46#
47# Hydra_Software_Devel/73   10/12/11 1:04p gmullen
48# SW7429-3: 7429 rave uses uif_image directory
49#
50# Hydra_Software_Devel/72   10/10/11 10:49a gmullen
51# SW7429-3: Merged to Hydra
52#
53# Hydra_Software_Devel/SW7429-3/1   10/10/11 10:43a gmullen
54# SW7429-3: Added support
55#
56# Hydra_Software_Devel/71   9/30/11 5:17p gmullen
57# SW7425-1183: Added support for 7422, 7358, 7552, 7344, 7640, 7231, and
58# 7346
59#
60# Hydra_Software_Devel/70   9/30/11 4:04p gmullen
61# SW7425-1183: Added bxpt_wakeup to builds for 7425
62#
63# Hydra_Software_Devel/69   8/29/11 3:34p gmullen
64# SW7346-419: Merged changes to Hydra
65#
66# Hydra_Software_Devel/SW7346-419/1   8/29/11 3:20p gmullen
67# SW7346-419: Added B0 support
68#
69# Hydra_Software_Devel/68   8/22/11 5:45p gmullen
70# SW7231-319: Merged to Hydra branch
71#
72# Hydra_Software_Devel/SW7231-319/1   8/22/11 4:12p gmullen
73# SW7231-319: Added B0 support
74#
75# Hydra_Software_Devel/67   7/28/11 11:27a gmullen
76# SW7405-5446: Added support
77#
78# Hydra_Software_Devel/66   6/15/11 2:55p gmullen
79# SW7425-719: Merged to Hydra branch
80#
81# Hydra_Software_Devel/SW7425-719/1   6/15/11 2:35p gmullen
82# SW7425-719: Added TSMF support
83#
84# Hydra_Software_Devel/65   3/25/11 11:35a gmullen
85# SWDTV-5976: Added 35233 support
86#
87# Hydra_Software_Devel/64   2/2/11 4:49p gmullen
88# SW7550-16: Added PSG support
89#
90# Hydra_Software_Devel/63   1/7/11 3:19p gmullen
91# SWBLURAY-23703: Added PI support
92#
93# Hydra_Software_Devel/62   12/16/10 9:43a gmullen
94# SW7552-3: Added 7552 to the Unified ITB list
95#
96# Hydra_Software_Devel/61   12/1/10 11:20a gmullen
97# SW7125-665: Added TSMF support
98#
99# Hydra_Software_Devel/60   12/1/10 8:01a gmullen
100# SW7425-15: Updated header and stub calls for TS mux
101#
102# Hydra_Software_Devel/59   11/18/10 5:21p gmullen
103# SW7344-2: Initial checkin
104#
105# Hydra_Software_Devel/58   11/18/10 5:13p gmullen
106# SW7346-3: Initial checkin
107#
108# Hydra_Software_Devel/57   11/18/10 4:58p gmullen
109# SW7231-6: Initial checkin
110#
111# Hydra_Software_Devel/56   11/10/10 11:54a gmullen
112# SW35125-19: Added support
113#
114# Hydra_Software_Devel/55   11/1/10 10:47a gmullen
115# SW7552-3: Added support for the 7552
116#
117# Hydra_Software_Devel/54   10/29/10 9:25a gmullen
118# SW7422-20: Src for legacy hw aren't needed
119#
120# Hydra_Software_Devel/53   10/28/10 3:30p gmullen
121# SW7358-12: Updated PI for the 7358
122#
123# Hydra_Software_Devel/52   10/27/10 1:36p gmullen
124# SW7422-20: Ported to 7422
125#
126# Hydra_Software_Devel/51   10/25/10 5:39p gmullen
127# SW7425-15: Make util does not like whitespaces.
128#
129# Hydra_Software_Devel/50   10/25/10 5:32p gmullen
130# SW7422-20: Changed _P_MAX defines to _NUM
131#
132# Hydra_Software_Devel/49   10/25/10 9:13a gmullen
133# SW7425-15: Added 7425 support
134#
135# Hydra_Software_Devel/48   7/9/10 11:07a gmullen
136# SW7550-448: Fixed compilation bug for non-TSMF builds
137#
138# Hydra_Software_Devel/47   7/4/10 5:33p gmullen
139# SW7630-81: Added support for QUICK
140#
141# Hydra_Software_Devel/46   6/19/10 12:52p gmullen
142# SW7550-448: Added TSMF support
143#
144# Hydra_Software_Devel/45   4/30/10 5:23p gmullen
145# SW7630-81: Created branch
146#
147# Hydra_Software_Devel/44   2/8/10 3:03p gmullen
148# SW7408-64: Added missing API.
149#
150# Hydra_Software_Devel/43   1/25/10 11:54a gmullen
151# SW7408-64: Added DirecTV support
152#
153# Hydra_Software_Devel/42   12/9/09 2:46p gmullen
154# SW7405-3331: Merged to mainline
155#
156# Hydra_Software_Devel/41   11/23/09 5:13p gmullen
157# SW7468-13: Updated PI and unit test
158#
159# Hydra_Software_Devel/40   11/4/09 3:59p gmullen
160# SW7400-2590: Merged to Hydra_Software_Devel
161#
162# Hydra_Software_Devel/SW7400-2590/2   11/2/09 3:35p gmullen
163# SW7400-2590: Changed location of ihex files for this issue
164#
165# Hydra_Software_Devel/SW7400-2590/1   10/30/09 6:12p gmullen
166# SW7400-2590: Added autoread ihex and PI extensions.
167#
168# Hydra_Software_Devel/39   10/29/09 5:32p gmullen
169# SW7408-9: Initial checkin
170#
171# Hydra_Software_Devel/38   10/26/09 3:09p gmullen
172# SW7468-13: Added XPT support
173#
174# Hydra_Software_Devel/37   9/18/09 3:34p gmullen
175# SW70015-1: Added xpt and RAVE unified format support
176#
177# Hydra_Software_Devel/36   9/14/09 9:57a gmullen
178# SW35230-2: Added support for 35230
179#
180# Hydra_Software_Devel/35   9/9/09 8:11a piyushg
181# SW7630-30: Add 7630 XPT PI support.
182#
183# Hydra_Software_Devel/34   9/8/09 4:11p gmullen
184# SW7630-43: Added support for 7630
185#
186# Hydra_Software_Devel/33   8/11/09 10:40a piyushg
187# PR55216: Added initial 7340 XPT support.
188#
189# Hydra_Software_Devel/32   8/5/09 4:52p piyushg
190# PR55545: Add 7125 XPT PI support
191# Added file element "bxpt_rave_ihex.c".
192# Added file element "bxpt_rave_ihex.h".
193#
194# Hydra_Software_Devel/31   7/31/09 2:44p gmullen
195# PR54331: Added 35130 to XPT support.
196#
197# Hydra_Software_Devel/30   7/14/09 10:23a piyushg
198# PR56771: Add XPT PI code for 7342.
199#
200# Hydra_Software_Devel/29   6/17/09 6:46p gmullen
201# PR56110: Added support.xpt/7550/uif_image/a0
202#
203# Hydra_Software_Devel/28   6/11/09 9:14a gmullen
204# PR55216: Initial checkin.
205#
206# Hydra_Software_Devel/27   4/17/09 4:21p gmullen
207# PR54331: Added 35130 to the build.
208#
209# Hydra_Software_Devel/26   4/7/09 5:26p piyushg
210# PR52986: Add support for 7635
211#
212# Hydra_Software_Devel/25   1/27/09 1:09p gmullen
213# PR51625: Added 7336 support
214#
215# Hydra_Software_Devel/24   12/15/08 2:36p gmullen
216# PR48908: Removed power management code from XPT PI.
217#
218# Hydra_Software_Devel/23   11/26/08 4:14p gmullen
219# PR47755: Added support for 7420.
220#
221# Hydra_Software_Devel/22   10/30/08 1:15p gmullen
222# PR46544: Fixed spelling error in define.
223#
224# Hydra_Software_Devel/21   10/29/08 9:20a gmullen
225# PR46544: Fixed compile error: code was built for unsupported chips.
226#
227# Hydra_Software_Devel/20   10/28/08 6:18p gmullen
228# PR46544: Default power management to ON. Added compile-time support to
229# disable power management.
230#
231# Hydra_Software_Devel/19   8/8/08 2:38p gmullen
232# PR44537: PI for XPT on the 7601
233#
234# Hydra_Software_Devel/18   3/26/08 11:24a gmullen
235# PR38954: Added 3548 support to XPT PI.
236#
237# Hydra_Software_Devel/17   12/14/07 9:52a gmullen
238# PR37118: Forced unified ITB enabled on 7118 and 7401.
239#
240# Hydra_Software_Devel/16   11/28/07 10:11a gmullen
241# PR36900: Added 7335 support.
242#
243# Hydra_Software_Devel/15   11/9/07 3:07p jgarrett
244# PR 36774: Fixing use of CFLAGS
245#
246# Hydra_Software_Devel/14   10/25/07 4:47p gmullen
247# PR36446: Forced unified ITB support enabled on 7400
248#
249# Hydra_Software_Devel/13   10/19/07 3:31p gmullen
250# PR35018: Added 7325 support
251#
252# Hydra_Software_Devel/12   7/25/07 4:10p gmullen
253# PR32434: Changed 7118 unified ITB support to a command line option at
254# build time.
255#
256# Hydra_Software_Devel/11   7/24/07 4:14p gmullen
257# PR32434: Added ihex files and adjusted bxpt.inc for unified ITB
258# support.
259#
260# Hydra_Software_Devel/10   7/12/07 11:24a gmullen
261# PR32885: Fixed (potential) bad args in findstring call.
262#
263# Hydra_Software_Devel/9   7/10/07 3:15p jgarrett
264# PR 32885: Fixing UNIFIED_ITB_SUPPORT=y test
265#
266# Hydra_Software_Devel/8   6/14/07 9:12a gmullen
267# PR29614: Changed check for unified ITB support enabled in the build
268# environment.
269#
270# Hydra_Software_Devel/7   6/13/07 3:18p gmullen
271# PR29614: Forced unified ITB support on for 7405. Added check for
272# UNIFIED_ITB_SUPPORT for other chips.
273#
274# Hydra_Software_Devel/6   5/31/07 3:40p gmohile
275# PR 29614 : set UITB as default for 7403
276#
277# Hydra_Software_Devel/5   4/13/07 7:01p gmullen
278# PR29614: Added unified ITB support.
279#
280# Hydra_Software_Devel/4   2/14/07 1:11p gmullen
281# PR27642: Added support for 7405.
282#
283# Hydra_Software_Devel/3   2/6/07 7:06p gmullen
284# PR26217: Added B0 support.
285#
286# Hydra_Software_Devel/2   1/16/07 4:58p jgarrett
287# PR 27004: Adding OTP & swizzle support for 7038
288#
289# Hydra_Software_Devel/1   1/11/07 2:39p jgarrett
290# PR27004: Adding new .inc files
291#
292############################################################
293
294#
295# Conditional Options for this Makefile
296#
297# BXPT_OTP_SUPPORT - [7038 Only] If defined, OTP support will be enabled.
298# BXPT_SWIZZLE_SUPPORT - [7038 Only] If defined, swizzle support will be enabled.
299#
300
301# Define this module
302MAGNUM_MODULES += BXPT
303
304# Use the unified ITB image files for RAVE in some cases. Some chips always use
305# the unified format.
306RAVE_IMAGE_DIR = image
307ifeq ($(findstring $(BCHP_CHIP), 7118 7400 7401 7403 7405 7325 7335 7336 3548 3556 7420 7635 35130 7340 7550 7342 7125 \
3087630 7631 35230 70015 7468 7408 7425 7435 7422 7358 35125 7231 7346 7344 7552 7640 35233 7429 7360), $(BCHP_CHIP))
309        RAVE_IMAGE_DIR = uif_image
310        BXPT_DEFINES += UNIFIED_ITB_SUPPORT
311endif
312ifeq ($(UNIFIED_ITB_SUPPORT),y)
313        RAVE_IMAGE_DIR = uif_image
314        BXPT_DEFINES += UNIFIED_ITB_SUPPORT
315endif
316ifeq ($(RAVE_AUTO_READ),y)
317        RAVE_IMAGE_DIR = uif_image/SW7400-2590
318        BXPT_DEFINES += BXPT_HAS_RAVE_AUTO_READ
319endif
320ifeq ($(RAVE_AUDIO_STARTCODES), y)
321        BXPT_DEFINES += BXPT_RAVE_AUDIO_STARTCODES
322endif
323 
324# Module Includes
325BXPT_INCLUDES += $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)
326BXPT_INCLUDES += $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)
327
328# Using BCHP_CHIP makes it *much* easier to support all the various combinations of features.
329ifeq ($(findstring $(BCHP_CHIP), 3563), $(BCHP_CHIP))
330
331BXPT_SOURCES += \
332        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
333        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
334        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
335        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
336        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
337        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
338        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
339        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
340        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
341        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
342        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
343        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf.c \
344        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf.c \
345        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
346        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
347        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset.c
348
349endif
350
351ifeq ($(findstring $(BCHP_CHIP), 7550), $(BCHP_CHIP))
352
353BXPT_SOURCES += \
354        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
355        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
356        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
357        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
358        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
359        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
360        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
361        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
362        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
363        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
364        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
365
366        TSMFDIR = $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/tsmf
367        TSMFSRC = $(TSMFDIR)/bxpt_tsmf.c
368        ifneq (,$(findstring $(TSMFSRC),$(wildcard $(TSMFSRC) )))
369                BXPT_SOURCES += $(TSMFDIR)/bxpt_tsmf.c
370                BXPT_INCLUDES += $(TSMFDIR)
371        endif
372
373        PSGDIR = $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/psg
374        PSGSRC = $(PSGDIR)/bxpt_psg.c
375        ifneq (,$(findstring $(PSGSRC),$(wildcard $(PSGSRC) )))
376                BXPT_SOURCES += $(PSGDIR)/bxpt_psg.c
377                BXPT_INCLUDES += $(PSGDIR)
378        endif
379endif
380
381ifeq ($(findstring $(BCHP_CHIP), 7118 7401 7403), $(BCHP_CHIP))
382
383BXPT_SOURCES += \
384        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
385        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
386        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
387        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
388        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
389        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
390        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
391        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
392        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
393        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
394        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
395        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
396        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
397        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
398        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
399        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf.c \
400        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf.c \
401        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
402        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
403        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset.c \
404        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c
405
406endif
407
408ifeq ($(findstring $(BCHP_CHIP), 7400), $(BCHP_CHIP))
409
410BXPT_SOURCES += \
411        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
412        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
413        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
414        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
415        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
416        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
417        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
418        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
419        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
420        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
421        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
422        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
423        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
424        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
425        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
426        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf.c \
427        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf.c \
428        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
429        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
430        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c
431
432        ifeq ($(findstring $(BCHP_VER), A0), $(BCHP_VER))
433        BXPT_SOURCES += \
434                        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset.c
435        else
436        BXPT_SOURCES += \
437                        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
438        endif
439
440endif
441
442ifeq ($(findstring $(BCHP_CHIP), 7405 7325 7335 7336 3548 3556 7420 7635 7340 7342 7125 ), $(BCHP_CHIP))
443
444BXPT_SOURCES += \
445        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
446        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
447        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
448        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
449        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c \
450        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
451        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
452        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
453        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
454        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
455        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
456        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
457        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
458        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
459        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
460        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
461        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf.c \
462        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf.c \
463        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
464        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
465        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
466
467        PSGDIR = $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/psg
468        PSGSRC = $(PSGDIR)/bxpt_psg.c
469        ifneq (,$(findstring $(PSGSRC),$(wildcard $(PSGSRC) )))
470                BXPT_SOURCES += $(PSGDIR)/bxpt_psg.c
471                BXPT_INCLUDES += $(PSGDIR)
472        endif
473
474        TSMFDIR = $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/tsmf
475        TSMFSRC = $(TSMFDIR)/bxpt_tsmf.c
476        ifneq (,$(findstring $(TSMFSRC),$(wildcard $(TSMFSRC) )))
477                BXPT_SOURCES += $(TSMFDIR)/bxpt_tsmf.c
478                BXPT_INCLUDES += $(TSMFDIR)
479        endif
480endif
481
482
483ifeq ($(findstring $(BCHP_CHIP), 7630 7631), $(BCHP_CHIP))
484
485        ifeq ($(findstring $(BCHP_VER), B2), $(BCHP_VER))
486
487        BXPT_SOURCES += \
488                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
489                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
490                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
491                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
492                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
493                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
494
495        else
496
497        BXPT_SOURCES += \
498                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
499                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
500                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
501                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
502                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
503                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
504                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
505                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
506                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
507                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
508                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
509                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
510                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
511                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
512                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf.c \
513                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf.c \
514                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
515                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
516                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c \
517                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
518
519        endif
520endif
521
522ifeq ($(findstring $(BCHP_CHIP), 35130 35230 35125 35233 ), $(BCHP_CHIP))
523
524BXPT_SOURCES += \
525        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
526        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
527        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
528        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
529        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
530        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
531        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
532        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
533        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
534        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
535        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
536        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
537        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
538        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
539
540endif
541
542ifeq ($(findstring $(BCHP_CHIP), 7468), $(BCHP_CHIP))
543
544BXPT_SOURCES += \
545        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
546        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
547        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
548        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
549        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
550        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
551        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
552        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
553        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
554        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
555        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
556        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
557        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
558        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c \
559        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
560
561endif
562
563ifeq ($(findstring $(BCHP_CHIP), 7440), $(BCHP_CHIP))
564
565BXPT_SOURCES += \
566        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
567        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
568        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
569        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
570        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
571        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
572        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
573        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
574        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
575        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
576        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
577        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf.c \
578        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf.c \
579        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
580        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
581        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset.c \
582        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c
583
584endif
585
586ifeq ($(findstring $(BCHP_CHIP), 7601, 70015), $(BCHP_CHIP))
587
588BXPT_SOURCES += \
589        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
590        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
591        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
592        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
593        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
594        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
595
596endif
597
598
599ifeq ($(findstring $(BCHP_CHIP), 7408), $(BCHP_CHIP))
600
601BXPT_SOURCES += \
602        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
603        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
604        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
605        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
606        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c \
607        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
608        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
609        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
610        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
611        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
612        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c
613
614endif
615
616# Legacy chips
617
618ifeq ($(BCHP_CHIP),7038)
619BXPT_SOURCES += \
620        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
621        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
622        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
623        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
624        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
625        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
626        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
627        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
628        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
629        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
630        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_ca.c \
631        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_common_private.c \
632        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_hsx.c \
633        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_record.c \
634        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
635        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
636        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_private.c \
637        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_hsx.c \
638        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
639        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback_private.c \
640        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_record.c \
641        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_record_private.c
642       
643        ifneq ($(findstring $(BCHP_VER),A0 B0 B1 B2), $(BCHP_VER))
644            BXPT_SOURCES += \
645                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_tsdma.c \
646                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_drama.c
647        endif
648
649        ifneq ($(BXPT_OTP_SUPPORT),)
650            BXPT_INCLUDES += $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/otp
651            BXPT_SOURCES += $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/otp/bxpt_otp.c
652        endif
653
654        ifneq ($(BXPT_SWIZZLE_SUPPORT),)
655            BXPT_INCLUDES += $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/swizzle
656            BXPT_SOURCES += $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/swizzle/bxpt_swizzle.c
657        endif
658endif
659
660ifeq ($(BCHP_CHIP),3560)
661BXPT_SOURCES += \
662        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt.c \
663        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_ca.c \
664        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_common_private.c \
665        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_directv.c \
666        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_directv_hsx.c \
667        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_directv_pcr.c \
668        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_directv_playback.c \
669        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_hsx.c \
670        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_interrupt.c \
671        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_pcr.c \
672        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_playback.c \
673        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_playback_private.c \
674        $(MAGNUM)/portinginterface/xpt/${BCHP_CHIP}/bxpt_sam.c
675endif
676
677
678ifeq ($(findstring $(BCHP_CHIP), 7425 7422 7358 7552 7344 7640 7360 7435), $(BCHP_CHIP))
679
680BXPT_SOURCES += \
681        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
682        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
683        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
684        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c \
685        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
686        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
687        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
688        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
689        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
690        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
691        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
692        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
693        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
694        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_priv.c \
695        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
696        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
697        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf_priv.c \
698        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf_priv.c \
699        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
700        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
701        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c \
702        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_wakeup.c
703
704        ifeq ($(BCHP_PWR_SUPPORT),y)
705        BXPT_SOURCES += \
706                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pwr_mgmt.c
707        endif
708
709        ifeq ($(findstring $(BCHP_CHIP), 7425 7435), $(BCHP_CHIP))
710        BXPT_SOURCES += \
711                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_tsmux.c
712        endif
713
714        TSMFDIR = $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/tsmf
715        TSMFSRC = $(TSMFDIR)/bxpt_tsmf.c
716        ifneq (,$(findstring $(TSMFSRC),$(wildcard $(TSMFSRC) )))
717                BXPT_SOURCES += $(TSMFDIR)/bxpt_tsmf.c
718                BXPT_INCLUDES += $(TSMFDIR)
719        endif
720
721endif
722
723ifeq ($(findstring $(BCHP_CHIP), 7231 7346 7429), $(BCHP_CHIP))
724
725BXPT_SOURCES += \
726        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt.c \
727        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv.c \
728        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcr.c \
729        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_pcroffset.c \
730        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_playback.c \
731        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_playback.c \
732        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_sam.c \
733        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_spid.c \
734        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_packetsub.c \
735        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr.c \
736        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_interrupt.c \
737        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_directv_remux.c \
738        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux.c \
739        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_remux_priv.c \
740        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mpod.c \
741        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_mesg.c \
742        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rsbuf_priv.c \
743        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_xcbuf_priv.c \
744        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_rave.c \
745        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/$(RAVE_IMAGE_DIR)/$(BCHP_VER_LOWER)/bxpt_rave_ihex.c \
746        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pcr_offset_emv.c \
747        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_wakeup.c \
748        $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_tsmux.c
749
750        ifeq ($(BCHP_PWR_SUPPORT),y)
751        BXPT_SOURCES += \
752                $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_pwr_mgmt.c
753        endif
754
755# 7231A and 7346A are no longer supported
756#       ifeq ($(findstring $(BCHP_VER_LOWER), b0), $(BCHP_VER_LOWER))
757#       BXPT_SOURCES += \
758#               $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_tsmux.c
759#       endif
760
761#       ifeq ($(findstring $(BCHP_CHIP), 7429 7231), $(BCHP_CHIP))
762#       BXPT_SOURCES += \
763#               $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/bxpt_tsmux.c
764#       endif
765
766        TSMFDIR = $(MAGNUM)/portinginterface/xpt/$(BCHP_CHIP)/tsmf
767        TSMFSRC = $(TSMFDIR)/bxpt_tsmf.c
768        ifneq (,$(findstring $(TSMFSRC),$(wildcard $(TSMFSRC) )))
769                BXPT_SOURCES += $(TSMFDIR)/bxpt_tsmf.c
770                BXPT_INCLUDES += $(TSMFDIR)
771        endif
772
773endif
774
775
776
Note: See TracBrowser for help on using the repository browser.