ppcskel.git
14 years agow00t, finally we get some serioes response from a usb device! \o/ firstresponse
Bernhard Urban [Sun, 20 Sep 2009 03:10:34 +0000 (05:10 +0200)]
w00t, finally we get some serioes response from a usb device! \o/

GET_DESCRIPTOR (with 8 bytes) works!

14 years agoas promised, brand new ugly hax!!11
Bernhard Urban [Sun, 20 Sep 2009 02:46:04 +0000 (04:46 +0200)]
as promised, brand new ugly hax!!11

14 years agosome clean up (for more dirt!! \o/)
Bernhard Urban [Sun, 20 Sep 2009 02:09:11 +0000 (04:09 +0200)]
some clean up (for more dirt!! \o/)

14 years agoamend it!
Bernhard Urban [Sun, 20 Sep 2009 01:40:48 +0000 (03:40 +0200)]
amend it!

14 years agodiscoverd weird endianness bug in sauter's usport. fixed
Bernhard Urban [Sun, 20 Sep 2009 00:35:11 +0000 (02:35 +0200)]
discoverd weird endianness bug in sauter's usport. fixed

14 years agodata{0,1} now decided by endpoint (for PID_IN) (see p22/23 @ ohci specs
Bernhard Urban [Sat, 19 Sep 2009 23:39:13 +0000 (01:39 +0200)]
data{0,1} now decided by endpoint (for PID_IN) (see p22/23 @ ohci specs
for details)

14 years agocontrol_quirk seems to be evil and our buf must be "80 06 00 01 00 00 40 00" for...
Bernhard Urban [Sat, 19 Sep 2009 20:31:54 +0000 (22:31 +0200)]
control_quirk seems to be evil and our buf must be "80 06 00 01 00 00 40 00" for setup!

14 years agosome changes... still blah
Bernhard Urban [Sat, 19 Sep 2009 18:36:05 +0000 (20:36 +0200)]
some changes... still blah

@a097034:
with my usb keyboard, the buffer pointer will be set to NULL. afaik that
is a proper value

14 years agocbp will be count up, but only with low speed devices (except my usb
Bernhard Urban [Sat, 19 Sep 2009 05:54:06 +0000 (07:54 +0200)]
cbp will be count up, but only with low speed devices (except my usb
keyboard o_X)

14 years agofurther pfusch :) as usual, see difflog for details
Bernhard Urban [Sat, 19 Sep 2009 03:06:27 +0000 (05:06 +0200)]
further pfusch :) as usual, see difflog for details

14 years agocorrected memalign call thestack/usbkb_sauter
theStack [Sat, 19 Sep 2009 02:22:39 +0000 (04:22 +0200)]
corrected memalign call

14 years agovarious changes, see difflog for details!
Bernhard Urban [Sat, 19 Sep 2009 00:36:53 +0000 (02:36 +0200)]
various changes, see difflog for details!

14 years agoadapted setup_port to old, clean state
theStack [Fri, 18 Sep 2009 23:52:48 +0000 (01:52 +0200)]
adapted setup_port to old, clean state

but with our evil return; hack :)

14 years agoport enable and reset problem solved (tmp commit)
theStack [Fri, 18 Sep 2009 23:41:06 +0000 (01:41 +0200)]
port enable and reset problem solved (tmp commit)

14 years agoit works now, but we don't know why... *sigh* :(
Bernhard Urban [Fri, 18 Sep 2009 23:14:27 +0000 (01:14 +0200)]
it works now, but we don't know why... *sigh* :(

14 years agotmp commit
Bernhard Urban [Fri, 18 Sep 2009 21:56:25 +0000 (23:56 +0200)]
tmp commit

14 years agoroothubports will be configured after init of ohci
Bernhard Urban [Fri, 18 Sep 2009 20:30:04 +0000 (22:30 +0200)]
roothubports will be configured after init of ohci

14 years agotried to fix port enable/reset bug - didn't work
theStack [Fri, 18 Sep 2009 20:12:59 +0000 (22:12 +0200)]
tried to fix port enable/reset bug - didn't work

14 years agosome roothub stuff added. TD transfer without errors, w00t!
Bernhard Urban [Fri, 18 Sep 2009 19:41:13 +0000 (21:41 +0200)]
some roothub stuff added. TD transfer without errors, w00t!

14 years agoadded HC roothub output to isr (only on "RootHubStatusChange")
Bernhard Urban [Fri, 18 Sep 2009 18:50:36 +0000 (20:50 +0200)]
added HC roothub output to isr (only on "RootHubStatusChange")

14 years agodummyconfig is now static, however control_quirk is still needed. (wtf)
Bernhard Urban [Fri, 18 Sep 2009 03:06:55 +0000 (05:06 +0200)]
dummyconfig is now static, however control_quirk is still needed. (wtf)

14 years agoadd debugfunction for td->flag
Bernhard Urban [Fri, 18 Sep 2009 00:43:32 +0000 (02:43 +0200)]
add debugfunction for td->flag

finally we get some response from HC :) however our TDs seems to be
bullshit :/

@commit 8dbf7ef007d1d:
I think the problem here was that tailp and headp of the ED structure
was set to the same location. In this case, the HC thinks all TDs are
done! So HC set CLF to null. (search for this somewhere in the ohci specs...)
In fact, just headp must be set.

14 years agoehm..., something happen! :D
Bernhard Urban [Thu, 17 Sep 2009 23:46:46 +0000 (01:46 +0200)]
ehm..., something happen! :D

14 years agoso, the HC clears CLF (ControlListFilled bit of the register "Command Status") immedi...
Bernhard Urban [Thu, 17 Sep 2009 23:10:53 +0000 (01:10 +0200)]
so, the HC clears CLF (ControlListFilled bit of the register "Command Status") immediately after setting it.
the ohci specs says:
"This bit is used to indicate whether there are any TDs on the Control
list. It is set by HCD whenever it adds a TD to an ED in the Control
list." [so far so good]
"When HC begins to process the head of the Control list, it checks CLF.
As long as ControlListFilled is 0, HC will not start processing the
Control list. If CLF is 1, HC will start processing the Control list and
will set ControlListFilled to 0. If HC finds a TD on the list, then HC
will set ControlListFilled to 1 causing the Control list processing to
continue. If no TD is found on the Control list, and if the HCD does not
set ControlListFilled, then ControlListFilled will still be 0 when HC
completes processing the Control list and Control list processing will
stop."

What does it mean for us? HC don't find the TD?

14 years agoamend it!
Bernhard Urban [Thu, 17 Sep 2009 22:21:13 +0000 (00:21 +0200)]
amend it!

14 years agonew hottie: calloc != memalign. after s/calloc/memalign the HC
Bernhard Urban [Thu, 17 Sep 2009 21:31:48 +0000 (23:31 +0200)]
new hottie: calloc != memalign. after s/calloc/memalign the HC
don't move HEAD to CURRENT, wtf? :/

14 years agosome debugoutputstuff and few changes
Bernhard Urban [Thu, 17 Sep 2009 20:07:14 +0000 (22:07 +0200)]
some debugoutputstuff and few changes

14 years ago[tmp] byte order changes in usb_control_msg() (usb.c). somehow it need
Bernhard Urban [Thu, 17 Sep 2009 17:25:18 +0000 (19:25 +0200)]
[tmp] byte order changes in usb_control_msg() (usb.c). somehow it need
fewer packets (more realistic?). further investigation will be done
soon.

14 years agoremoved decrementer exception message
theStack [Wed, 16 Sep 2009 20:15:52 +0000 (22:15 +0200)]
removed decrementer exception message

because it's getting on my nerves while browsing
the host controller output...

14 years agofirst usage of ACCESS_LE throughout the file
theStack [Wed, 16 Sep 2009 19:48:05 +0000 (21:48 +0200)]
first usage of ACCESS_LE throughout the file

it is NOT tested yet, but hey, it compiles ;-)

14 years agoadd macro for u32 little endian access from ppc
theStack [Wed, 16 Sep 2009 19:26:40 +0000 (21:26 +0200)]
add macro for u32 little endian access from ppc

14 years ago[tmp] speicherprobleme behoben; in current bleibt der erste endpoint
Bernhard Urban [Wed, 16 Sep 2009 16:19:51 +0000 (18:19 +0200)]
[tmp] speicherprobleme behoben; in current bleibt der erste endpoint
"haengen"
weiters steht merkuwerdiger weise die adresse (0x80008000) nach
"warmstart" in current -- WTF?
im "done head" leider noch immer nix :( vielleicht ist die endianess
schuld?! (le<>be)

14 years ago[tmp] geht grad nix :(
Bernhard Urban [Wed, 16 Sep 2009 16:06:29 +0000 (18:06 +0200)]
[tmp] geht grad nix :(

14 years agoattempt to get some TDs through the HC -> fail :(
Bernhard Urban [Wed, 16 Sep 2009 03:47:29 +0000 (05:47 +0200)]
attempt to get some TDs through the HC -> fail :(

14 years agohappy whitespace hunting in sauter stack
theStack [Wed, 16 Sep 2009 02:09:05 +0000 (04:09 +0200)]
happy whitespace hunting in sauter stack

(only files that are relevant for us)

14 years agosome debug stuff. let zeh ohci hack begin! \o/
Bernhard Urban [Wed, 16 Sep 2009 01:41:23 +0000 (03:41 +0200)]
some debug stuff. let zeh ohci hack begin! \o/

14 years agofirst adaption of 'usbport' by Benedikt Sauter
Bernhard Urban [Wed, 16 Sep 2009 00:29:08 +0000 (02:29 +0200)]
first adaption of 'usbport' by Benedikt Sauter
see http://www.embedded-projects.net/index.php?page_id=186

14 years agofirst adaption of linux ohci irq handler thestack/isr_test
theStack [Sat, 5 Sep 2009 00:47:31 +0000 (02:47 +0200)]
first adaption of linux ohci irq handler

14 years agothe whitespace hunter has struck again!
theStack [Fri, 4 Sep 2009 23:35:26 +0000 (01:35 +0200)]
the whitespace hunter has struck again!

14 years agosync before write hcca_SRC? else just peanuts
Bernhard Urban [Fri, 4 Sep 2009 23:09:28 +0000 (01:09 +0200)]
sync before write hcca_SRC? else just peanuts

14 years agoohci0 finally goes in operational mode -- silly confusion with
Bernhard Urban [Fri, 4 Sep 2009 22:40:52 +0000 (00:40 +0200)]
ohci0 finally goes in operational mode -- silly confusion with
{set,write}32 *shame*

14 years agodirty ohci commit for thestack; nicer patch will follow
Bernhard Urban [Fri, 4 Sep 2009 22:20:36 +0000 (00:20 +0200)]
dirty ohci commit for thestack; nicer patch will follow

14 years agokilled the ohci_init FM_INTERVAL fail
theStack [Fri, 4 Sep 2009 15:12:41 +0000 (17:12 +0200)]
killed the ohci_init FM_INTERVAL fail

14 years agolol noobs, how about clearing OHCI0_HC_INT_STATUS?! :)
Bernhard Urban [Fri, 4 Sep 2009 07:53:12 +0000 (09:53 +0200)]
lol noobs, how about clearing OHCI0_HC_INT_STATUS?! :)

14 years agojust commented out unneeded line in irq init
theStack [Thu, 3 Sep 2009 23:54:33 +0000 (01:54 +0200)]
just commented out unneeded line in irq init

due to the fact that (HW_PPCIRQMASK+0x04 == HW_ARMIRQFLAG),
that write concerns arm irqs and is thus not needed here.
besides that, writing 0 to a flag register seems to be
senseless anyway (what have mini people done here? :P).

14 years agoWIP: irq handler
Bernhard Urban [Thu, 3 Sep 2009 18:10:10 +0000 (20:10 +0200)]
WIP: irq handler

hw-pic still don't work, but the irq #14 will be cleared...
maybe all hw-ppc-flags should be cleared -- how?!

write32(HW_PPCIRQFLAG, ~0);
don't work :(

14 years agoWIP: irq_handler
Bernhard Urban [Thu, 3 Sep 2009 00:17:32 +0000 (02:17 +0200)]
WIP: irq_handler

14 years agoMerge branch 'isr_test' of git://github.com/theStack/ppcskel into isr_test
Bernhard Urban [Wed, 2 Sep 2009 22:46:29 +0000 (00:46 +0200)]
Merge branch 'isr_test' of git://github.com/theStack/ppcskel into isr_test

Conflicts:
ohci.c

14 years agoWIP: copy irq_handler from mini to ppcskel
Bernhard Urban [Tue, 1 Sep 2009 16:36:06 +0000 (18:36 +0200)]
WIP: copy irq_handler from mini to ppcskel

14 years agountracked all those annoying .d files
theStack [Wed, 2 Sep 2009 15:14:43 +0000 (17:14 +0200)]
untracked all those annoying .d files

14 years agoadded (empty) handling for decrementer exception
theStack [Wed, 2 Sep 2009 14:49:36 +0000 (16:49 +0200)]
added (empty) handling for decrementer exception

14 years agofixed dma_addr() macro in ohci.c
theStack [Wed, 2 Sep 2009 14:26:35 +0000 (16:26 +0200)]
fixed dma_addr() macro in ohci.c

14 years agoimplemented simple irq handler, added irq.h
theStack [Mon, 31 Aug 2009 19:52:28 +0000 (21:52 +0200)]
implemented simple irq handler, added irq.h

14 years agoohci0 interrupt will be thrown - hooray++ \o/
theStack [Mon, 31 Aug 2009 16:44:55 +0000 (18:44 +0200)]
ohci0 interrupt will be thrown - hooray++ \o/

14 years agoreset interrupt will be thrown - hooray \o/
theStack [Mon, 31 Aug 2009 15:51:16 +0000 (17:51 +0200)]
reset interrupt will be thrown - hooray \o/

14 years agoadd .gitignore
Bernhard Urban [Thu, 27 Aug 2009 15:16:45 +0000 (17:16 +0200)]
add .gitignore

14 years agohttp://bootmii-devel.googlegroups.com/web/ppcskel.zip
Bernhard Urban [Thu, 27 Aug 2009 15:16:23 +0000 (17:16 +0200)]
bootmii-devel.googlegroups.com/web/ppcskel.zip