Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393_sata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393_sata
Commits
035f9e57
Commit
035f9e57
authored
Mar 03, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed dd_read_dma for non-128B aligned CT
parent
8ebd2132
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
org.eclipse.core.resources.prefs
py393sata/.settings/org.eclipse.core.resources.prefs
+1
-0
x393sata.py
py393sata/x393sata.py
+8
-3
No files found.
py393sata/.settings/org.eclipse.core.resources.prefs
View file @
035f9e57
eclipse.preferences.version=1
eclipse.preferences.version=1
encoding/create_ahci_registers.py=utf-8
encoding/create_ahci_registers.py=utf-8
encoding/x393sata.py=utf-8
py393sata/x393sata.py
View file @
035f9e57
...
@@ -728,7 +728,8 @@ class x393sata(object):
...
@@ -728,7 +728,8 @@ class x393sata(object):
(
1
<<
10
)
|
# 'C' Do clear BSY/CI after transmitting this command
(
1
<<
10
)
|
# 'C' Do clear BSY/CI after transmitting this command
(
1
<<
16
))
# 'PRDTL' - number of PRDT entries (just one)
(
1
<<
16
))
# 'PRDTL' - number of PRDT entries (just one)
self
.
x393_mem
.
write_mem
(
MAXI1_ADDR
+
COMMAND_HEADER0_OFFS
+
(
2
<<
2
),
self
.
x393_mem
.
write_mem
(
MAXI1_ADDR
+
COMMAND_HEADER0_OFFS
+
(
2
<<
2
),
(
COMMAND_ADDRESS
)
&
0xffffffc0
)
# 'CTBA' - Command table base address
(
COMMAND_ADDRESS
))
# 'CTBA' - Command table base address
# (COMMAND_ADDRESS) & 0xffffffc0) # 'CTBA' - Command table base address
self
.
sync_for_device
(
'H2D'
,
COMMAND_ADDRESS
,
256
)
# command and PRD table
self
.
sync_for_device
(
'H2D'
,
COMMAND_ADDRESS
,
256
)
# command and PRD table
self
.
sync_for_device
(
'D2H'
,
DATAIN_ADDRESS
,
count
*
512
)
self
.
sync_for_device
(
'D2H'
,
DATAIN_ADDRESS
,
count
*
512
)
...
@@ -839,7 +840,8 @@ class x393sata(object):
...
@@ -839,7 +840,8 @@ class x393sata(object):
(
1
<<
10
)
|
# 'C' Do clear BSY/CI after transmitting this command
(
1
<<
10
)
|
# 'C' Do clear BSY/CI after transmitting this command
(
1
<<
16
))
# 'PRDTL' - number of PRDT entries (just one)
(
1
<<
16
))
# 'PRDTL' - number of PRDT entries (just one)
self
.
x393_mem
.
write_mem
(
MAXI1_ADDR
+
COMMAND_HEADER0_OFFS
+
(
2
<<
2
),
self
.
x393_mem
.
write_mem
(
MAXI1_ADDR
+
COMMAND_HEADER0_OFFS
+
(
2
<<
2
),
(
COMMAND_ADDRESS
)
&
0xffffffc0
)
# 'CTBA' - Command table base address
(
COMMAND_ADDRESS
))
# 'CTBA' - Command table base address
# (COMMAND_ADDRESS) & 0xffffffc0) # 'CTBA' - Command table base address
self
.
sync_for_device
(
'H2D'
,
COMMAND_ADDRESS
,
256
)
# command and PRD table
self
.
sync_for_device
(
'H2D'
,
COMMAND_ADDRESS
,
256
)
# command and PRD table
# Make it flush (dumb way - write each cache line (32 bytes) something?
# Make it flush (dumb way - write each cache line (32 bytes) something?
...
@@ -1240,6 +1242,9 @@ _=sata.scan_rxdly(0.1,0x80,0x80) # set bad
...
@@ -1240,6 +1242,9 @@ _=sata.scan_rxdly(0.1,0x80,0x80) # set bad
_=sata.scan_rxdly() # scan all with measurement time 0.1
_=sata.scan_rxdly() # scan all with measurement time 0.1
_=sata.scan_rxdly(0.1, 0, 255) # scan half (full range is 2 periods) with measurement time 0.1
_=sata.scan_rxdly(0.1, 0, 255) # scan half (full range is 2 periods) with measurement time 0.1
sata.vsc3304.PCB_CONNECTIONS['10389B']['INVERTED_PORTS']
('A', 'E', 'G', 'H')
sata.vsc3304.PCB_CONNECTIONS['10389B']['INVERTED_PORTS']=('E','G','H')
reload (x393sata)
reload (x393sata)
sata = x393sata.x393sata()
sata = x393sata.x393sata()
...
@@ -1251,7 +1256,7 @@ from __future__ import division
...
@@ -1251,7 +1256,7 @@ from __future__ import division
import x393sata
import x393sata
import x393_mem
import x393_mem
mem = x393_mem.X393Mem(1,0,1)
mem = x393_mem.X393Mem(1,0,1)
sata = x393sata.x393sata(1,0,"10389B")
sata = x393sata.x393sata(
) #
1,0,"10389B")
# def __init__(self, debug_mode=1,dry_mode=False, pcb_rev = "10389"):
# def __init__(self, debug_mode=1,dry_mode=False, pcb_rev = "10389"):
sata.bitstream()
sata.bitstream()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment